X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/57ea21d338a7a66874fe56f01fb8644f43f7f14b..8f941c072088954b142be7e7c293607a8015aa57:/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