art.canvas.draw_dither
Apply a dither pattern to a rectangular canvas region using two hex colors and a checkerboard or ordered 2x2 pattern to create pixel-art texture and shading.
Instructions
Apply a dither pattern to a rectangular region.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Top-left X coordinate | |
| y | Yes | Top-left Y coordinate | |
| width | Yes | Region width | |
| color1 | Yes | First color as hex string | |
| color2 | Yes | Second color as hex string | |
| height | Yes | Region height | |
| pattern | Yes | Dither pattern type | |
| session_id | Yes | Canvas session ID |