Paint: Ellipse, circle or arc
paint_ellipseDraw ellipses, circles, arcs, or pie shapes on a canvas with adjustable radius, rotation, angles, and fill/stroke.
Instructions
Circle (radius) or ellipse (rx,ry). start_angle/end_angle in degrees cut an arc; pie:true closes it to the centre; rotation tilts the shape.
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 |
|---|---|---|---|
| cx | Yes | ||
| cy | Yes | ||
| rx | No | ||
| ry | No | ||
| pie | No | ||
| fill | No | A colour, or a gradient object {type, from, to, radius, colors|stops} | |
| blend | No | Blend mode for this stroke | normal |
| 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. | |
| radius | No | ||
| stroke | No | A colour, or a gradient object {type, from, to, radius, colors|stops} | |
| 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 | |
| rotation | No | ||
| end_angle | No | ||
| start_angle | No | ||
| preview_size | No | Longest edge of the returned thumbnail | |
| stroke_width | No |