PaintStyle
A shade style that paints the fills and strokes of shapes with sources, such as gradients: the color of the source replaces the color of the fill or stroke, their alpha multiplies. A fill or stroke without a paint keeps its color. All PaintUnits work for shapes, contours, circles and rectangles, also drawn in batches.
PaintUnits.BOUNDS reads c_boundsPosition. For shapes, a paint over the bounds of a shape can be drawn in PaintUnits.OBJECT units with a transform that maps 0..1 to the bounds, see boundsTransform.
Properties
The transform of the fill paint, which replaces the transform of fill. Changing it does not compile another shader, shapes with different transforms can share a paint style.
the transform of the stroke paint, which replaces the transform of stroke, see fillTransform
Functions
Sets the values of fxContextLibrary: the time in seconds, the number of the frame and the resolution of the image in pixels. For a shade style or a filter whose shader reads them or includes FX_CONTEXT_USE.