Skip to content

Commit 563b36b

Browse files
Update line.py
1 parent 313c17c commit 563b36b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

adafruit_display_shapes/line.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,15 @@ class Line(Polygon):
4040

4141
def __init__(self, x0, y0, x1, y1, color):
4242
super().__init__([(x0, y0), (x1, y1)], outline=color)
43+
44+
@property
45+
def color(self):
46+
"""The line color value. Can be a hex value for a color or
47+
``None`` for no line color."""
48+
return self.outline
49+
50+
@color.setter
51+
def color(self, color):
52+
self.outline = color
53+
return
54+

0 commit comments

Comments
 (0)