Overview
Defines one element of the ramp of colors to use on a gradient.
Attribute Summary
name | type | description |
---|---|---|
Public | ||
color | Color |
Indicates what color to use at this gradient stop. |
offset | Number |
The offset attribute is a number ranging from 0 to 1 which indicates where this gradient stop is placed. |
Protected |
Inherited Attributes
Inherited Functions
Attributes
public color: Color
Indicates what color to use at this gradient stop.
public offset: Number
The offset attribute is a number ranging from 0 to 1 which indicates where this gradient stop is placed. For linear gradients, the offset attribute represents a location along the gradient vector. For radial gradients, it represents a percentage distance from (focusX,focusY) to the edge of the outermost/largest circle.