dither_gradient
Fill a region with an ordered-dither gradient between two palette colors, using bayer or checker patterns and horizontal, vertical, or radial axes.
Instructions
Fill a region with an ordered-dither gradient between two palette colors. The indexed-color way to blend a smooth-looking transition: from_index at one end, to_index at the other. axis horizontal/vertical/radial; pattern bayer (4x4, smoother) or checker (2x2, coarser). Either index may be 0 to fade to/from transparent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| axis | No | Default horizontal | |
| clip | No | Silently discard out-of-bounds pixels instead of rejecting (default false) | |
| frame | No | Frame index, 0-based (default: active frame) | |
| layer | No | Layer id or name (default: active layer) | |
| doc_id | Yes | Document id | |
| region | Yes | Region: exactly one of 'rect', 'pixels', or 'selection' | |
| render | No | Include a render of the change (default true) | |
| pattern | No | Default bayer | |
| to_index | Yes | ||
| from_index | Yes | Palette index | |
| ignore_symmetry | No | Skip symmetry mirroring for this call (default false) |