Skip to content

Commit 6a1a59b

Browse files
committed
docs: add TilePaletteMapper to pixel_shader allowed types.
1 parent 97c6617 commit 6a1a59b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared-bindings/displayio/TileGrid.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ void displayio_tilegrid_validate_pixel_shader(mp_obj_t pixel_shader) {
4949
//| self,
5050
//| bitmap: Union[Bitmap, OnDiskBitmap],
5151
//| *,
52-
//| pixel_shader: Union[ColorConverter, Palette],
52+
//| pixel_shader: Union[ColorConverter, Palette, tilepalettemapper.TilePaletteMapper],
5353
//| width: int = 1,
5454
//| height: int = 1,
5555
//| tile_width: Optional[int] = None,
@@ -68,7 +68,7 @@ void displayio_tilegrid_validate_pixel_shader(mp_obj_t pixel_shader) {
6868
//| tile_width and tile_height match the height of the bitmap by default.
6969
//|
7070
//| :param Bitmap,OnDiskBitmap bitmap: The bitmap storing one or more tiles.
71-
//| :param ColorConverter,Palette pixel_shader: The pixel shader that produces colors from values
71+
//| :param ColorConverter,Palette,tilepalettemapper.TilePaletteMapper pixel_shader: The pixel shader that produces colors from values
7272
//| :param int width: Width of the grid in tiles.
7373
//| :param int height: Height of the grid in tiles.
7474
//| :param int tile_width: Width of a single tile in pixels. Defaults to the full Bitmap and must evenly divide into the Bitmap's dimensions.
@@ -330,7 +330,7 @@ static mp_obj_t displayio_tilegrid_obj_contains(mp_obj_t self_in, mp_obj_t touch
330330
}
331331
MP_DEFINE_CONST_FUN_OBJ_2(displayio_tilegrid_contains_obj, displayio_tilegrid_obj_contains);
332332

333-
//| pixel_shader: Union[ColorConverter, Palette]
333+
//| pixel_shader: Union[ColorConverter, Palette, tilepalettemapper.TilePaletteMapper]
334334
//| """The pixel shader of the tilegrid."""
335335
static mp_obj_t displayio_tilegrid_obj_get_pixel_shader(mp_obj_t self_in) {
336336
displayio_tilegrid_t *self = native_tilegrid(self_in);

0 commit comments

Comments
 (0)