Paint: Gradient wash
paint_gradientDraw linear or radial gradients across a named canvas or area for skies, glows, metal, and shadows. Optionally target a layer.
Instructions
Linear or radial gradient over the canvas or an area — skies, glows, metal, shadows.
Target the canvas by name (created with paint_canvas) and optionally a layer index. Layers, filters and undo work the same for every drawing tool.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End point (linear only) | |
| area | No | Restrict to a rectangle; omit for the whole canvas | |
| from | No | Start point (linear) or centre (radial) | |
| type | No | linear | |
| blend | No | Blend mode for this stroke | normal |
| layer | No | Target layer index; defaults to the active layer (see paint_canvas). | |
| shape | No | rect | |
| stops | No | ||
| canvas | Yes | Canvas name. Letters, digits, space, dot, dash, plus; the .png/.paint suffix may be included or omitted. | |
| colors | Yes | Evenly spaced colours | |
| radius | No | Radial radius | |
| opacity | No | 0..1 strength of this stroke | |
| preview | No | Image reply: auto/thumb = downscaled picture back into the result, full = unpixelated, none = text only | |
| preview_size | No | Longest edge of the returned thumbnail |