art.canvas.draw_noise
Fill a canvas region with random noise using specified hex colors to create textures, grain, or procedural pixel-art effects.
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 |