Generate a sprite procedurally
sprite_generateGenerate seeded pixel-art sprites and looping animations from hand-designed recipes, including heroes, slimes, potions, gems, tiles, and more, with deterministic output for any seed.
Instructions
One-call, seeded, hand-designed pixel-art recipes. Kinds: hero, slime, potion, gem, chest, sword, shield, tree, mushroom, ghost, coin, star, torch, planet, cloud, heart, portrait, tile_grass, tile_stone, tile_brick, tile_water, tile_lava. Animated kinds (slime/ghost/coin/star/torch/tile_water/tile_lava) create a full looping timeline automatically. Call sprite_catalog for the full list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Generator name, e.g. 'hero', 'slime', 'tile_water'. | |
| seed | No | Deterministic seed — same seed always gives the same sprite. | |
| tags | No | ||
| frame | No | Frame index (0-based), frame id or frame name. Omit = active frame. | |
| layer | No | Layer name. Omit = topmost layer. | |
| frames | No | Override the generator's default frame count. | |
| project | No | Project id. Omit to use the active project. | |
| replace | No | Replace the whole timeline (default true). false = append. | |
| durationMs | No |