select_by_color
Select image regions by color similarity using a target color and tolerance threshold, with replace, add, subtract, or intersect operations to refine selections.
Instructions
Select regions by color similarity.
Parameters:
color: Target color as CSS name, hex (#rrggbb), or rgb() string
threshold: Color similarity tolerance 0-255 (default 15)
operation: "replace" (default), "add", "subtract", "intersect"
image_index: Target image index (default 0)
layer_name: Layer to sample from; defaults to active layer
Returns status dict.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | Yes | ||
| operation | No | replace | |
| threshold | No | ||
| layer_name | No | ||
| image_index | No |