Color
ps_colorSet, swap, or sample pixel colors to control Photoshop's foreground and background.
Instructions
Manages foreground and background colors. "set-foreground" / "set-background" set the app color (provide color). "swap" swaps foreground and background. "sample-pixel" reads the color at the given x,y coordinate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | Color action | |
| color | No | Color value for set-foreground / set-background | |
| x | No | X pixel coordinate for sample-pixel | |
| y | No | Y pixel coordinate for sample-pixel |