get_pixel_color
Retrieves the RGB, hex, and alpha color values of a single pixel at specified coordinates, optionally from a chosen image layer.
Instructions
Get the color of a single pixel.
Parameters:
x, y: Pixel coordinates
image_index: Target image index (default 0)
layer_name: Layer to sample from; defaults to active layer
Returns: {color_hex, color_rgb: [r, g, b], alpha}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes | ||
| layer_name | No | ||
| image_index | No |