generate_pixel_art
Generate pixel-art PNGs from text prompts with customizable grid size, color palette, and optional seed. Saves directly to your project directory.
Instructions
Generate a pixel-art PNG from a text prompt and save it.
Args: prompt: What to draw, e.g. "cozy library interior, side view, tall arched windows, warm lamps". out_path: Save location (relative paths resolve against PIXEL_OUT_DIR), e.g. "assets/pixel/library/background.png". width: Pixel-grid width (smaller = chunkier). 160x90 suits 16:9 scenes; use 32-64 for sprites/props. height: Pixel-grid height. colors: Palette size (16-48 reads as retro). seed: Optional seed for reproducible output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| out_path | Yes | ||
| width | No | ||
| height | No | ||
| colors | No | ||
| seed | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |