Skip to content

Commit

Permalink
fix for issue #33 with black formatting applied
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-l5 committed May 6, 2023
1 parent 2e7d56f commit 599db1b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions adafruit_gfx/gfx.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_GFX.git"


# pylint: disable=invalid-name
class GFX:
# pylint: disable=too-many-instance-attributes
Expand All @@ -49,6 +50,7 @@ class GFX:
:param font: An optional input to augment the default text method with a new font.
The input should be a properly formatted dict.
"""

# pylint: disable=too-many-arguments
def __init__(
self,
Expand Down Expand Up @@ -280,7 +282,7 @@ def fill_triangle(self, x0, y0, x1, y1, x2, y2, *args, **kwargs):
last = y1 - 1
else:
last = y1
while y <= last:
while y <= last:
a = x0 + sa // dy01
b = x0 + sb // dy02
sa += dx01
Expand All @@ -304,7 +306,8 @@ def fill_triangle(self, x0, y0, x1, y1, x2, y2, *args, **kwargs):
def round_rect(self, x0, y0, width, height, radius, *args, **kwargs):
"""Rectangle with rounded corners drawing function.
This works like a regular rect though! if radius = 0
Will draw the outline of a rectangle with rounded corners with (x0,y0) at the top left"""
Will draw the outline of a rectangle with rounded corners with (x0,y0) at the top left
"""
# shift to correct for start point location
x0 += radius
y0 += radius
Expand Down

0 comments on commit 599db1b

Please sign in to comment.