Skip to content

Commit

Permalink
Merge pull request #5847 from radarhere/documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 22, 2021
2 parents 2ad8573 + e06e18a commit ae7c2cb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docs/reference/ImageDraw.rst
Expand Up @@ -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.

Expand All @@ -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)
Expand Down
11 changes: 9 additions & 2 deletions docs/releasenotes/9.0.0.rst
Expand Up @@ -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

Expand Down Expand Up @@ -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.

0 comments on commit ae7c2cb

Please sign in to comment.