@@ -41,13 +41,13 @@ class GFX:
41
41
:param vline: A function to quickly draw a vertical line on the display.
42
42
This should take at least an x, y, and height paraemter and
43
43
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
45
45
input parameters: x,y, width, and height. Any number of other
46
46
parameters for color or screen specific data.
47
47
:param text: A function to quickly place text on the screen. The inputs include:
48
48
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.
51
51
"""
52
52
# pylint: disable=too-many-arguments
53
53
def __init__ (
@@ -102,7 +102,7 @@ def __init__(
102
102
103
103
def pixel (self , x0 , y0 , * args , ** kwargs ):
104
104
"""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
106
106
self ._pixel (x0 , y0 , * args , ** kwargs )
107
107
108
108
def _slow_hline (self , x0 , y0 , width , * args , ** kwargs ):
@@ -203,7 +203,7 @@ def circle(self, x0, y0, radius, *args, **kwargs):
203
203
self ._pixel (x0 - y , y0 - x , * args , ** kwargs ) # 180 to 135
204
204
205
205
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
207
207
center at x0, y0 and the specified radius."""
208
208
self .vline (x0 , y0 - radius , 2 * radius + 1 , * args , ** kwargs )
209
209
f = 1 - radius
@@ -303,7 +303,7 @@ def fill_triangle(self, x0, y0, x1, y1, x2, y2, *args, **kwargs):
303
303
def round_rect (self , x0 , y0 , width , height , radius , * args , ** kwargs ):
304
304
"""Rectangle with rounded corners drawing function.
305
305
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"""
307
307
# shift to correct for start point location
308
308
x0 += radius
309
309
y0 += radius
@@ -369,7 +369,7 @@ def round_rect(self, x0, y0, width, height, radius, *args, **kwargs):
369
369
) # 180 to 225
370
370
371
371
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
373
373
center at x0, y0 and the specified radius."""
374
374
# shift to correct for start point location
375
375
x0 += radius
@@ -457,7 +457,7 @@ def _place_char(self, x0, y0, char, size, *args, **kwargs):
457
457
del arr , width , height , data , x , y , x0 , y0 , char , size
458
458
459
459
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)
461
461
to use special characters put "__" on either side of the desired characters.
462
462
letter format:
463
463
{'character_here' : bytearray(b',WIDTH,HEIGHT,right-most-data,
@@ -519,8 +519,8 @@ def _very_slow_text(self, x0, y0, string, size, *args, **kwargs):
519
519
# print(highest_height) #wrap
520
520
521
521
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
524
524
"""
525
525
self .text_bkgnd_args = args
526
526
self .text_bkgnd_kwargs = kwargs
0 commit comments