draw_on_tile
Draw pixels onto a tile in a tilemap layer's tileset, using tile-local coordinates. Appends a new tile when tile_index exceeds current count.
Instructions
Draw pixels onto a tile in a tilemap layer's tileset.
Coordinates are tile-local (0,0 = tile top-left). When tile_index equals the current tile count, a new tile is appended automatically.
Args: filename: Aseprite file to modify layer_name: Tilemap layer whose tileset to edit tile_index: Tile to draw on (1 = first real tile; 0 is reserved for the empty tile and cannot be drawn on) pixels: List of {"x": int, "y": int, "color": "#RRGGBB"}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | ||
| layer_name | Yes | ||
| tile_index | Yes | ||
| pixels | Yes |