From 563b36b730a0a9ef7c8a4a4364aecb01edd8f54f Mon Sep 17 00:00:00 2001 From: Cedar Grove Maker Studios Date: Wed, 17 Nov 2021 14:06:11 -0800 Subject: [PATCH 1/3] Update line.py --- adafruit_display_shapes/line.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/adafruit_display_shapes/line.py b/adafruit_display_shapes/line.py index c177354..1eaa409 100644 --- a/adafruit_display_shapes/line.py +++ b/adafruit_display_shapes/line.py @@ -40,3 +40,15 @@ class Line(Polygon): def __init__(self, x0, y0, x1, y1, color): super().__init__([(x0, y0), (x1, y1)], outline=color) + + @property + def color(self): + """The line color value. Can be a hex value for a color or + ``None`` for no line color.""" + return self.outline + + @color.setter + def color(self, color): + self.outline = color + return + From a97a8c1a7436f78de61513053a56166a50b2f5b2 Mon Sep 17 00:00:00 2001 From: Cedar Grove Maker Studios Date: Wed, 17 Nov 2021 14:10:18 -0800 Subject: [PATCH 2/3] Update line.py --- adafruit_display_shapes/line.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/adafruit_display_shapes/line.py b/adafruit_display_shapes/line.py index 1eaa409..e7be594 100644 --- a/adafruit_display_shapes/line.py +++ b/adafruit_display_shapes/line.py @@ -40,7 +40,7 @@ class Line(Polygon): def __init__(self, x0, y0, x1, y1, color): super().__init__([(x0, y0), (x1, y1)], outline=color) - + @property def color(self): """The line color value. Can be a hex value for a color or @@ -51,4 +51,3 @@ def color(self): def color(self, color): self.outline = color return - From 042f2f0b4137c00461ad9adc21b340695abb08c8 Mon Sep 17 00:00:00 2001 From: Cedar Grove Maker Studios Date: Wed, 17 Nov 2021 14:22:01 -0800 Subject: [PATCH 3/3] Update line.py --- adafruit_display_shapes/line.py | 1 - 1 file changed, 1 deletion(-) diff --git a/adafruit_display_shapes/line.py b/adafruit_display_shapes/line.py index e7be594..f030548 100644 --- a/adafruit_display_shapes/line.py +++ b/adafruit_display_shapes/line.py @@ -50,4 +50,3 @@ def color(self): @color.setter def color(self, color): self.outline = color - return