X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/blobdiff_plain/03b2e1008f33585652fad5ecedad65d44694b2bc..85cea22ff75765e3a8fd1b00824f88fc5a3be8da:/displayio/_tilegrid.py diff --git a/displayio/_tilegrid.py b/displayio/_tilegrid.py index 25b0c73..35f5ac1 100644 --- a/displayio/_tilegrid.py +++ b/displayio/_tilegrid.py @@ -408,3 +408,23 @@ class TileGrid: if not 0 <= value <= 255: raise ValueError("Tile value out of bounds") self._tiles[index] = value + + @property + def width(self): + """Width in tiles""" + return self._width + + @property + def height(self): + """Height in tiles""" + return self._height + + @property + def tile_width(self): + """Width of each tile in pixels""" + return self._tile_width + + @property + def tile_height(self): + """Height of each tile in pixels""" + return self._tile_height