pixel_replace_color
Replace every pixel of one exact color with another across the canvas for palette swaps and recoloring sprites.
Instructions
Replace every pixel of one exact color with another across the canvas.
Useful for palette swaps and recoloring sprites. Matching is exact RGBA. Returns JSON {"canvas", "find", "replace", "pixels_changed"}; plus a rendered image when preview=true. On failure returns "Error: ...".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |