Merge pull request #5847 from radarhere/documentation

This commit is contained in:
Hugo van Kemenade 2021-11-22 09:36:44 +02:00 committed by GitHub
commit ae7c2cb2e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 4 deletions

View File

@ -242,7 +242,7 @@ Methods
numeric values like ``[x, y, x, y, ...]``.
:param fill: Color to use for the point.
.. py:method:: ImageDraw.polygon(xy, fill=None, outline=None)
.. py:method:: ImageDraw.polygon(xy, fill=None, outline=None, width=1)
Draws a polygon.
@ -252,8 +252,9 @@ Methods
:param xy: Sequence of either 2-tuples like ``[(x, y), (x, y), ...]`` or
numeric values like ``[x, y, x, y, ...]``.
:param outline: Color to use for the outline.
:param fill: Color to use for the fill.
:param outline: Color to use for the outline.
:param width: The line width, in pixels.
.. py:method:: ImageDraw.regular_polygon(bounding_circle, n_sides, rotation=0, fill=None, outline=None)

View File

@ -55,8 +55,10 @@ TODO
API Changes
===========
TODO
^^^^
Added line width parameter to ImageDraw polygon
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
An optional line ``width`` parameter has been added to ``ImageDraw.Draw.polygon``.
TODO
@ -98,3 +100,8 @@ TrueType fonts may now be pickled and unpickled. For example:
# Later...
unpickled_font = pickle.loads(pickled_font)
Added support for additional TGA orientations
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TGA images with top right or bottom right orientations are now supported.