ColorBuilder class

ColorBuilder class

A builder class for constructing color values in various formats. This class provides methods to set color values and build them into string representations that can be used in styling contexts, such as CSS or SVG attributes.

The ColorBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of ColorBuilder

Methods

MethodDescription
currentSets the color value to ‘currentColor’, a CSS keyword that represents the current color context.
colorSets the color value based on a Color object.
buildBuilds the current color value into a string representation.

See Also