Skip to content

Commit 64eb9da

Browse files
authored
Merge pull request #27 from makermelissa/master
Fixed off by one error with diagonal lines
2 parents d5ae3f1 + 4778fc0 commit 64eb9da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_display_shapes/polygon.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def _line(self, x0, y0, x1, y1, color):
127127
else:
128128
ystep = -1
129129

130-
for x in range(x0, x1):
130+
for x in range(x0, x1 + 1):
131131
if steep:
132132
self._bitmap[y0, x] = color
133133
else:

0 commit comments

Comments
 (0)