Skip to content

Commit 25169b4

Browse files
Merge pull request #20 from colonwq/misc_spelling
Misc typo corrections in comments. Zero functionality added.
2 parents 87672d4 + 9cae82f commit 25169b4

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

adafruit_gfx/gfx.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ class GFX:
4141
:param vline: A function to quickly draw a vertical line on the display.
4242
This should take at least an x, y, and height paraemter and
4343
any number of optional color or other parameters.
44-
:param fill_rect: A funtion to quickly draw a solid rectangle with four
44+
:param fill_rect: A function to quickly draw a solid rectangle with four
4545
input parameters: x,y, width, and height. Any number of other
4646
parameters for color or screen specific data.
4747
:param text: A function to quickly place text on the screen. The inputs include:
4848
x, y data(top left as starting point).
49-
:param font: An optional input to augment the default text method with a new font.
50-
The input shoudl be a properly formatted dict.
49+
:param font: An optional input to augment the default text method with a new font.
50+
The input should be a properly formatted dict.
5151
"""
5252
# pylint: disable=too-many-arguments
5353
def __init__(
@@ -102,7 +102,7 @@ def __init__(
102102

103103
def pixel(self, x0, y0, *args, **kwargs):
104104
"""A function to pass through in input pixel functionality."""
105-
# This was added to mainitatn the abstrtion between gfx and the dislay library
105+
# This was added to mainitatn the abstraction between gfx and the dislay library
106106
self._pixel(x0, y0, *args, **kwargs)
107107

108108
def _slow_hline(self, x0, y0, width, *args, **kwargs):
@@ -203,7 +203,7 @@ def circle(self, x0, y0, radius, *args, **kwargs):
203203
self._pixel(x0 - y, y0 - x, *args, **kwargs) # 180 to 135
204204

205205
def fill_circle(self, x0, y0, radius, *args, **kwargs):
206-
"""Filled circle drawing function. Will draw a filled circule with
206+
"""Filled circle drawing function. Will draw a filled circle with
207207
center at x0, y0 and the specified radius."""
208208
self.vline(x0, y0 - radius, 2 * radius + 1, *args, **kwargs)
209209
f = 1 - radius
@@ -303,7 +303,7 @@ def fill_triangle(self, x0, y0, x1, y1, x2, y2, *args, **kwargs):
303303
def round_rect(self, x0, y0, width, height, radius, *args, **kwargs):
304304
"""Rectangle with rounded corners drawing function.
305305
This works like a regular rect though! if radius = 0
306-
Will draw the outline of a rextabgle with rounded corners with (x0,y0) at the top left"""
306+
Will draw the outline of a rectangle with rounded corners with (x0,y0) at the top left"""
307307
# shift to correct for start point location
308308
x0 += radius
309309
y0 += radius
@@ -369,7 +369,7 @@ def round_rect(self, x0, y0, width, height, radius, *args, **kwargs):
369369
) # 180 to 225
370370

371371
def fill_round_rect(self, x0, y0, width, height, radius, *args, **kwargs):
372-
"""Filled circle drawing function. Will draw a filled circule with
372+
"""Filled circle drawing function. Will draw a filled circle with
373373
center at x0, y0 and the specified radius."""
374374
# shift to correct for start point location
375375
x0 += radius
@@ -457,7 +457,7 @@ def _place_char(self, x0, y0, char, size, *args, **kwargs):
457457
del arr, width, height, data, x, y, x0, y0, char, size
458458

459459
def _very_slow_text(self, x0, y0, string, size, *args, **kwargs):
460-
"""a function to place text on the display.(temporary)
460+
"""A function to place text on the display.(temporary)
461461
to use special characters put "__" on either side of the desired characters.
462462
letter format:
463463
{'character_here' : bytearray(b',WIDTH,HEIGHT,right-most-data,
@@ -519,8 +519,8 @@ def _very_slow_text(self, x0, y0, string, size, *args, **kwargs):
519519
# print(highest_height) #wrap
520520

521521
def set_text_background(self, *args, **kwargs):
522-
"""A method to change the background color of text, input any and all color paramsself.
523-
run without any inputs to return to "clear" background
522+
"""A function to change the background color of text, input any and all color params.
523+
Run without any inputs to return to "clear" background
524524
"""
525525
self.text_bkgnd_args = args
526526
self.text_bkgnd_kwargs = kwargs

0 commit comments

Comments
 (0)