krita_fill_layer
Fills a paint layer with solid color, linear gradient, or flood fill; erases via destination-out, masked by the current selection.
Instructions
Raster source-over fill or destination-out erase on a simple RGBA/U8/sRGB paint layer, limited to 1 MP and masked by the current selection. Erase forbids color and uses opacity/selection coverage. Other modes require color. Linear gradient needs end_color/start/end; flood needs point and matches exact layer BGRA with four-connected neighbors. No brush simulation, tolerance, or guaranteed undo. Reuse operation_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end | No | ||
| kind | Yes | ||
| color | No | ||
| point | No | ||
| start | No | ||
| node_id | Yes | ||
| opacity | No | ||
| end_color | No | ||
| document_id | Yes | ||
| instance_id | Yes | ||
| operation_id | Yes |