There was an error while loading. Please reload this page.
1 parent c5774ef commit c701027Copy full SHA for c701027
adafruit_display_shapes/polygon.py
@@ -39,15 +39,15 @@ class Polygon(displayio.TileGrid):
39
:param list points: A list of (x, y) tuples of the points
40
:param int|None outline: The outline of the polygon. Can be a hex value for a color or
41
``None`` for no outline.
42
- :param bool close: Wether to connect first and last point.
+ :param bool close: (Optional) Wether to connect first and last point. (True)
43
"""
44
45
def __init__(
46
self,
47
points: List[Tuple[int, int]],
48
*,
49
outline: Optional[int] = None,
50
- close: bool = True,
+ close: Optional[bool] = True,
51
) -> None:
52
if close:
53
points.append(points[0])
0 commit comments