X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/448a5d576565da54c651451832cc8f62c80d8545..HEAD:/vectorio/_rectangle.py diff --git a/vectorio/_rectangle.py b/vectorio/_rectangle.py index e4c5952..15880c6 100644 --- a/vectorio/_rectangle.py +++ b/vectorio/_rectangle.py @@ -38,6 +38,7 @@ class Rectangle(_VectorShape): height: int, x: int, y: int, + color_index: int = 0, ): """Represents a rectangle by defining its bounds @@ -51,7 +52,7 @@ class Rectangle(_VectorShape): """ self._width = 1 self._height = 1 - self._color_index = 1 + self._color_index = color_index + 1 super().__init__(pixel_shader, x, y) self.width = width