set_selection
Set a selection by rectangle, ellipse, polygon, layer, color tolerance, all, or none, and choose replace/add/subtract/intersect to constrain later edits to that area.
Instructions
Select: kind=rect or ellipse (x, y, width, height), polygon (points [[x,y],...]),
layer (the opaque pixels of layer), color (every pixel within tolerance 0-255 of color, or of the
colour at x,y; contiguous=true = magic wand from x,y), all, or none.
mode: replace, add, subtract, intersect. Later draw/brush/filter/fill operations are limited to it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | No | ||
| y | No | ||
| kind | No | rect | |
| mode | No | replace | |
| color | No | ||
| layer | No | ||
| width | No | ||
| height | No | ||
| points | No | ||
| tolerance | No | ||
| contiguous | No |