from ._palette import Palette
from ._structs import RectangleStruct, TransformStruct
-__version__ = "0.0.0-auto.0"
+__version__ = "0.0.0+auto.0"
__repo__ = "https://github.com/adafruit/Adafruit_Blinka_displayio.git"
if not 0 <= value <= 255:
raise ValueError("Tile value out of bounds")
self._tiles[index] = value
+
+ @property
+ def width(self) -> int:
+ """Width in tiles"""
+ return self._width
+
+ @property
+ def height(self) -> int:
+ """Height in tiles"""
+ return self._height
+
+ @property
+ def tile_width(self) -> int:
+ """Width of each tile in pixels"""
+ return self._tile_width
+
+ @property
+ def tile_height(self) -> int:
+ """Height of each tile in pixels"""
+ return self._tile_height