On this page
Properties

Type Alias GradientDefinition

Defines a gradient for use in a radial gradient layer.

type GradientDefinition = {
    scale: number;
    stops: [GradientStop, GradientStopColor][];
}
Index

Properties

Properties

scale: number

Scale factor that affects the size/reach of the gradient

Array of gradient stops, where each stop is a tuple containing a position and a color

Was this helpful?
SDK JS
Reference
GradientDefinition