Skip to content

Commit

Permalink
Fixing more formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
CRImier committed Mar 11, 2018
1 parent 7735635 commit f3d6166
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions ui/canvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def load_font(self, path, size, alias=None, type="truetype"):
def point(self, coord_pairs, **kwargs):
"""
Draw a point, or multiple points on the canvas. Coordinates are expected in
``((x1, y1), (x2, y2), ...)`` format, where ``x*``&``y*`` are coordinates
``((x1, y1), (x2, y2), ...)`` format, where ``x*`` & ``y*`` are coordinates
of each point you want to draw.
"""
if not all([issequence(c) for c in coord_pairs]):
Expand All @@ -105,8 +105,8 @@ def point(self, coord_pairs, **kwargs):
def line(self, coords, **kwargs):
"""
Draw a line on the canvas. Coordinates are expected in
``(x1, y1, x2, y2)`` format, where ``x1``&``y1`` are coordinates
of the start, and ``x2``&``y2`` are coordinates of the end.
``(x1, y1, x2, y2)`` format, where ``x1`` & ``y1`` are coordinates
of the start, and ``x2`` & ``y2`` are coordinates of the end.
"""
fill = kwargs.pop("fill", self.default_color)
coords = self.check_coordinates(coords)
Expand All @@ -115,7 +115,7 @@ def line(self, coords, **kwargs):
def text(self, text, coords, **kwargs):
"""
Draw text on the canvas. Coordinates are expected in (x, y)
format, where ``x``&``y`` are coordinates of the top left corner.
format, where ``x`` & ``y`` are coordinates of the top left corner.
You can pass a ``font`` keyword argument to it - it accepts either a
``PIL.ImageFont`` object or a tuple of ``(path, size)``, which are
Expand All @@ -139,8 +139,8 @@ def text(self, text, coords, **kwargs):
def rectangle(self, coords, **kwargs):
"""
Draw a rectangle on the canvas. Coordinates are expected in
``(x1, y1, x2, y2)`` format, where ``x1``&``y1`` are coordinates
of the top left corner, and ``x2``&``y2`` are coordinates
``(x1, y1, x2, y2)`` format, where ``x1`` & ``y1`` are coordinates
of the top left corner, and ``x2`` & ``y2`` are coordinates
of the bottom right corner.
"""
coords = self.check_coordinates(coords)
Expand Down

0 comments on commit f3d6166

Please sign in to comment.