Paint: Freehand brush stroke
paint_brushDraw brush strokes along a polyline with per-point pressure, jitter, and hardness control. Target a canvas and layer to paint soft stamps, calligraphy, or spray effects.
Instructions
Mouse-drag feel: soft stamps along a polyline. Each point may carry a third value 0..1 as pressure. flatten+angle make a calligraphy nib, jitter a hand wobble, low hardness a spray.
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 |
|---|---|---|---|
| seed | No | Deterministic jitter seed | |
| size | No | ||
| angle | No | ||
| blend | No | Blend mode for this stroke | normal |
| color | Yes | Brush colour or gradient | |
| layer | No | Target layer index; defaults to the active layer (see paint_canvas). | |
| canvas | Yes | Canvas name. Letters, digits, space, dot, dash, plus; the .png/.paint suffix may be included or omitted. | |
| jitter | No | ||
| points | Yes | Stroke path as [[x,y], …]; add a third value 0..1 per point for pressure | |
| flatten | No | ||
| 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 | |
| spacing | No | Stamp gap as a fraction of size | |
| hardness | No | ||
| preview_size | No | Longest edge of the returned thumbnail |