_displays = []
Rectangle = namedtuple("Rectangle", "x1 y1 x2 y2")
-AbsoluteTransform = namedtuple("AbsoluteTransform", "scale transposexy")
+AbsoluteTransform = namedtuple("AbsoluteTransform", "scale transpose_xy flip_x flip_y")
def release_displays():
initialization so the display is active as long as possible.
"""
for _disp in _displays:
- _disp._release() # pylint: disable=protected-access
+ _disp._release() # pylint: disable=protected-access
_displays.clear()
for layer in self._layers:
if isinstance(layer, (Group, TileGrid)):
- layer._fill_area(buffer) # pylint: disable=protected-access
+ layer._fill_area(buffer) # pylint: disable=protected-access
@property
def hidden(self):
class BuiltinFont:
"""Simulate a font built into CircuitPython"""
+
def __init__(self):
self._font = ImageFont.load_default()
ascii_chars = ""
class Glyph:
"""Storage of glyph info"""
+
def __init__(self, *, bitmap, tile_index, width, height, dx, dy, shift_x, shift_y):
self.bitmap = bitmap
self.width = width