Merge pull request #7211 from radarhere/rounded_rectangle

This commit is contained in:
Hugo van Kemenade 2023-06-14 09:08:00 +03:00 committed by GitHub
commit 2aacab1809
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -328,7 +328,7 @@ Methods
.. versionadded:: 5.3.0 .. versionadded:: 5.3.0
.. py:method:: ImageDraw.rounded_rectangle(xy, radius=0, fill=None, outline=None, width=1) .. py:method:: ImageDraw.rounded_rectangle(xy, radius=0, fill=None, outline=None, width=1, corners=None)
Draws a rounded rectangle. Draws a rounded rectangle.
@ -341,6 +341,7 @@ Methods
:param width: The line width, in pixels. :param width: The line width, in pixels.
:param corners: A tuple of whether to round each corner, :param corners: A tuple of whether to round each corner,
``(top_left, top_right, bottom_right, bottom_left)``. ``(top_left, top_right, bottom_right, bottom_left)``.
Keyword-only argument.
.. versionadded:: 8.2.0 .. versionadded:: 8.2.0