8000 Merge pull request #5280 from FoamyGuy/tilegrid_arg_shape · domdfcoding/circuitpython@9797665 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9797665

Browse files
authored
Merge pull request adafruit#5280 from FoamyGuy/tilegrid_arg_shape
update TileGrid docstrings to include Shape
2 parents fbb005b + b1d7b6e commit 9797665

F 8000 ile tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shared-bindings/displayio/TileGrid.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@
4848
//|
4949
//| A single tile grid is also known as a Sprite."""
5050
//|
51-
//| def __init__(self, bitmap: Bitmap, *, pixel_shader: Union[ColorConverter, Palette], width: int = 1, height: int = 1, tile_width: Optional[int] = None, tile_height: Optional[int] = None, default_tile: int = 0, x: int = 0, y: int = 0) -> None:
51+
//| 7432 def __init__(self, bitmap: Union[Bitmap, Shape], *, pixel_shader: Union[ColorConverter, Palette], width: int = 1, height: int = 1, tile_width: Optional[int] = None, tile_height: Optional[int] = None, default_tile: int = 0, x: int = 0, y: int = 0) -> None:
5252
//| """Create a TileGrid object. The bitmap is source for 2d pixels. The pixel_shader is used to
5353
//| convert the value and its location to a display native pixel color. This may be a simple color
5454
//| palette lookup, a gradient, a pattern or a color transformer.
5555
//|
5656
//| tile_width and tile_height match the height of the bitmap by default.
5757
//|
58-
//| :param Bitmap bitmap: The bitmap storing one or more tiles.
58+
//| :param Bitmap,Shape bitmap: The bitmap storing one or more tiles.
5959
//| :param ColorConverter,Palette pixel_shader: The pixel shader that produces colors from values
6060
//| :param int width: Width of the grid in tiles.
6161
//| :param int height: Height of the grid in tiles.

0 commit comments

Comments
 (0)
0