Fields
style
Describes how shapes are drawn, including fill or stroke style, thickness,
color, gradient, and blending behaviour.
Painting style (stroke or fill).
join
Stroke join behaviour for corners.
cap
Stroke cap used for line endings.
thickness
Thickness of the stroked path.
blendMode
Blending mode used when compositing.
feather
Feathering amount.
gradient
Gradient applied to fill (if present).
color
Color
Constructors
new
Creates a new Paint object with default settings.
Example:
with
Creates a new Paint initialized from the provided PaintDefinition.
Example:
Methods
copy
Returns a new Paint that copies this one, optionally overriding selected
properties with values from the provided PaintDefinition.
Example:
Paint instance with merged values.