Skip to content

Patch2 ran black for formatting fix. #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions adafruit_display_shapes/circle.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,21 @@ def __init__(self, x0, y0, r, *, fill=None, outline=None, stroke=1):
stroke=stroke,
)
self.r = r

@property
def x0(self):
"""The x-position of the center of the circle."""
return self.x + self.r

@property
def y0(self):
"""The y-position of the center of the circle."""
return self.y + self.r

@x0.setter
def x0(self, x0):
self.x = x0 - self.r

@y0.setter
def y0(self, y0):
self.y = y0 - self.r