diff --git a/adafruit_display_shapes/circle.py b/adafruit_display_shapes/circle.py index 8bdaa95..5bfd7f1 100644 --- a/adafruit_display_shapes/circle.py +++ b/adafruit_display_shapes/circle.py @@ -45,6 +45,7 @@ class Circle(RoundRect): + # pylint: disable=too-few-public-methods, invalid-name """A circle. :param x0: The x-position of the center. @@ -54,10 +55,18 @@ class Circle(RoundRect): ``None`` for transparent. :param outline: The outline of the rounded-corner rectangle. Can be a hex value for a color or ``None`` for no outline. + :param stroke: Used for the outline. Will not change the radius. """ - def __init__(self, x0, y0, r, *, fill=None, outline=None): + def __init__(self, x0, y0, r, *, fill=None, outline=None, stroke=1): super().__init__( - x0 - r, y0 - r, 2 * r + 1, 2 * r + 1, r, fill=fill, outline=outline + x0 - r, + y0 - r, + 2 * r + 1, + 2 * r + 1, + r, + fill=fill, + outline=outline, + stroke=stroke, ) diff --git a/adafruit_display_shapes/line.py b/adafruit_display_shapes/line.py index 3945695..849929a 100755 --- a/adafruit_display_shapes/line.py +++ b/adafruit_display_shapes/line.py @@ -45,7 +45,7 @@ class Line(Polygon): - # pylint: disable=too-many-arguments,invalid-name + # pylint: disable=too-many-arguments,invalid-name, too-few-public-methods """A line. :param x0: The x-position of the first vertex.