art.canvas.draw_noise
Fill any canvas region with random noise by specifying hex colors and density, to create procedural pixel art textures for game assets.
Instructions
Fill a region with random noise using specified colors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Top-left X coordinate | |
| y | Yes | Top-left Y coordinate | |
| width | Yes | Region width | |
| colors | Yes | Array of hex color strings to randomly pick from | |
| height | Yes | Region height | |
| density | No | Probability of placing a pixel (0-1, default 0.5) | |
| session_id | Yes | Canvas session ID |