PaintBuilder class

PaintBuilder class

A builder class for creating paint values for SVG elements.

The PaintBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of PaintBuilder

Methods

MethodDescription
noneSets the paint to ’none'.
colorSets the paint to a specific color.
paint_server_id
context_fillSets the paint to ‘context-fill’, which uses the current fill color of the context.
context_strokeSets the paint to ‘context-stroke’, which uses the current stroke color of the context.
buildBuilds the final paint value.

See Also