Set Fill
node_set_fillSet a node's fill to a literal RGBA color, an image, or clear all fills. Accepts RGBA components, image URL with scale mode, or base64 image bytes.
Instructions
Set a node's fill to a literal RGBA color, an image, or clear it. Use node_apply_style to link a shared paint style, or node_bind_variable to bind a color token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | Alpha component (0-1) | |
| b | No | Blue component (0-1) | |
| g | No | Green component (0-1) | |
| r | No | Red component (0-1) | |
| clear | No | Set to true to clear all fills. Must provide exactly one of solid color, image, or clear:true. | |
| image | No | Optional image payload. Must provide exactly one of solid color or image. | |
| nodeId | Yes | The ID of the node to modify | |
| nodeName | Yes | Name of the node to modify |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the modified node | |
| warnings | No | Warnings from the operation (e.g., resizing) |