Skip to content

Commit

Permalink
Clarify that line() and polygon() include xy pixels
Browse files Browse the repository at this point in the history
  • Loading branch information
radarhere committed May 8, 2023
1 parent 2a274a4 commit 2f896ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/reference/ImageDraw.rst
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ Methods
.. py:method:: ImageDraw.line(xy, fill=None, width=0, joint=None)
Draws a line between the coordinates in the ``xy`` list.
The coordinate pixels are included in the drawn line.

:param xy: Sequence of either 2-tuples like ``[(x, y), (x, y), ...]`` or
numeric values like ``[x, y, x, y, ...]``.
Expand Down Expand Up @@ -287,7 +288,7 @@ Methods

The polygon outline consists of straight lines between the given
coordinates, plus a straight line between the last and the first
coordinate.
coordinate. The coordinate pixels are included in the drawn polygon.

:param xy: Sequence of either 2-tuples like ``[(x, y), (x, y), ...]`` or
numeric values like ``[x, y, x, y, ...]``.
Expand Down

0 comments on commit 2f896ee

Please sign in to comment.