Merge pull request #4902 from comhar/master

Add `ImageDraw.regular_polygon` to release notes
This commit is contained in:
Hugo van Kemenade 2020-09-06 10:57:40 +03:00 committed by GitHub
commit df06eedbb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -78,6 +78,14 @@ high ends.
Now, it can also be a tuple ``(low, high)``.
ImageDraw.regular_polygon
^^^^^^^^^^^^^^^^^^^^^^^^^
A new method :py:meth:`.ImageDraw.regular_polygon`, draws a regular polygon of ``n_sides``, inscribed in a ``bounding_circle``.
For example ``draw.regular_polygon(((100, 100), 50), 5)``
draws a pentagon centered at the point ``(100, 100)`` with a polygon radius of ``50``.
Security
========