StaticgetReturns the name of this object's type.
StaticgradientCreates a gradient paint from an immutable VectorGradient (build one with
VectorGradientBuilder). The gradient is referenced as-is — a single
VectorGradient may back many paints. Throws if gradient is null.
The gradient to paint with.
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.
StaticsolidCreates a solid-color paint. color is a normalized RGBA 4-component vector
[r, g, b, a] with each component in [0, 1] (components outside this range are
clamped).
Normalized RGBA color (each component clamped to [0, 1]).
An immutable fill paint for VectorCompositeBuilder#addPath — either a flat solid color or a VectorGradient. Create one with VectorPaint.solid or VectorPaint.gradient. A
VectorPaintcarries only paint (color or gradient), not path geometry, so it is freely reusable: pass the sameVectorPaintto multiple VectorCompositeBuilder#addPath calls to fill several paths with one paint.Since
Lens Scripting Version 370
Snap OS
Example