brush_stroke
Paints a single stroke in Krita using the real brush engine and preset controls for pressure, size, opacity, flow, erasing, smoothing, and closed fills while respecting the active selection.
Instructions
Paint ONE stroke with Krita's real brush engine (texture, wet mixing, ... from the preset). points: [[x, y], ...] or [[x, y, pressure 0..1], ...] (pressure needs a pressure-sensitive preset). preset: brush preset name or unique part of it (see list_brush_presets; default: the current brush). size in px, opacity/flow 0..1, eraser=true erases with the brush. smooth=true curves through the points. closed/fill: close the path / fill it with the colour (outline=false for fill only). Painting respects the current selection. The user's own brush settings are restored afterwards.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fill | No | ||
| flow | No | ||
| size | No | ||
| color | No | ||
| layer | No | ||
| closed | No | ||
| eraser | No | ||
| points | Yes | ||
| preset | No | ||
| smooth | No | ||
| opacity | No | ||
| outline | No |