API Documentation
adafruit_anchored_tilegrid
TileGrid subclass that can be placed relative to an arbitrary anchor point.
Author(s): Tim C
Implementation Notes
Software and Dependencies:
Adafruit CircuitPython firmware for the supported boards: https://circuitpython.org/downloads
- class adafruit_anchored_tilegrid.AnchoredTileGrid(bitmap, **kwargs)
AnchoredTileGrid extends TileGrid and allows placing the TileGrid relative to an arbitrary anchor point.
Create a TileGrid object. The bitmap is source for 2d pixels. The pixel_shader is used to convert the value and its location to a display native pixel color. This may be a simple color palette lookup, a gradient, a pattern or a color transformer.
tile_width and tile_height match the height of the bitmap by default.
- property anchor_point
The anchor point. tuple containing x and y values ranging from 0 to 1.