set_gradient_fill
Apply a linear, radial, angular, or diamond gradient fill to a Figma node by specifying color stops and optional transform points, opacity, and paint index.
Instructions
Set a gradient fill (LINEAR, RADIAL, ANGULAR, DIAMOND) on a node. stops: [{position 0..1, color {r,g,b[,a]}}]. Optional from/to transform points (normalized), opacity, paintIndex.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| from | No | ||
| stops | Yes | ||
| nodeId | Yes | ||
| opacity | No | ||
| paintIndex | No | ||
| gradientType | No |