Skip to content

Misc typo corrections in comments. Zero functionality added. #20

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 20, 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
20 changes: 10 additions & 10 deletions adafruit_gfx/gfx.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ class GFX:
:param vline: A function to quickly draw a vertical line on the display.
This should take at least an x, y, and height paraemter and
any number of optional color or other parameters.
:param fill_rect: A funtion to quickly draw a solid rectangle with four
:param fill_rect: A function to quickly draw a solid rectangle with four
input parameters: x,y, width, and height. Any number of other
parameters for color or screen specific data.
:param text: A function to quickly place text on the screen. The inputs include:
x, y data(top left as starting point).
:param font: An optional input to augment the default text method with a new font.
The input shoudl be a properly formatted dict.
: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__(
Expand Down Expand Up @@ -102,7 +102,7 @@ def __init__(

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

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

def fill_circle(self, x0, y0, radius, *args, **kwargs):
"""Filled circle drawing function. Will draw a filled circule with
"""Filled circle drawing function. Will draw a filled circle with
center at x0, y0 and the specified radius."""
self.vline(x0, y0 - radius, 2 * radius + 1, *args, **kwargs)
f = 1 - radius
Expand Down Expand Up @@ -303,7 +303,7 @@ 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 rextabgle 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 Expand Up @@ -369,7 +369,7 @@ def round_rect(self, x0, y0, width, height, radius, *args, **kwargs):
) # 180 to 225

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

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

def set_text_background(self, *args, **kwargs):
"""A method to change the background color of text, input any and all color paramsself.
run without any inputs to return to "clear" background
"""A function to change the background color of text, input any and all color params.
Run without any inputs to return to "clear" background
"""
self.text_bkgnd_args = args
self.text_bkgnd_kwargs = kwargs
Expand Down