tilepalettemapper
– Remaps color indices from the source bitmap to alternate indices on a
per-tile basis. This allows for altering coloring of tiles based on
their tilegrid location. It also allows for using a limited color
bitmap with a wider array of colors.
Available on these boards
- class tilepalettemapper.TilePaletteMapper(palette: displayio.Palette, input_color_count: int, width: int, height: int)
Create a TilePaletteMApper object to store a set of color mappings for tiles.
- Parameters:
palette (displayio.Palette) – The palette to get mapped colors from.
input_color_count (int) – The number of colors in in the input bitmap.
width (int) – The width of the grid in tiles.
height (int) – The height of the grid in tiles.
- palette: displayio.Palette
The palette that the mapper uses.