mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 10:16:17 +03:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
2c4a6e1179
commit
2ee3cef50e
|
@ -184,7 +184,7 @@ class ImageDraw:
|
|||
def circle(self, xy: Coords, radius, fill=None, outline=None, width=1) -> None:
|
||||
"""Draw a circle given center coordinates and a radius."""
|
||||
ink, fill = self._getink(outline, fill)
|
||||
ellipse_xy = (xy[0]-radius, xy[1]-radius, xy[0]+radius, xy[1]+radius)
|
||||
ellipse_xy = (xy[0] - radius, xy[1] - radius, xy[0] + radius, xy[1] + radius)
|
||||
if fill is not None:
|
||||
self.draw.draw_ellipse(ellipse_xy, fill, 1)
|
||||
if ink is not None and ink != fill and width != 0:
|
||||
|
|
Loading…
Reference in New Issue
Block a user