ReadonlykindWhether this gradient is linear or radial.
ReadonlyspreadThe VectorComposite.SpreadMode — how the gradient extends beyond its
[0, 1] parameter range.
ReadonlystopThe number of color stops (between 2 and 16, inclusive).
StaticgetReturns the name of this object's type.
Returns true if the object matches or derives from the passed in type.
Returns true if this object is the same as other. Useful for checking if two references point to the same thing.
An immutable gradient paint — a linear or radial color ramp with a VectorComposite.SpreadMode. Produced by VectorGradientBuilder#build and never mutated after. A gradient carries only paint (geometry + color stops + spread), not path geometry, so it is freely shareable: wrap it in a VectorPaint.gradient and pass that paint to multiple VectorCompositeBuilder#addPath calls to fill several paths with one gradient. Exposes read-only metadata — its VectorGradient#kind, VectorGradient#stopCount, and VectorGradient#spread.
Since
Lens Scripting Version 370
Snap OS
Example