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
| Constructor | Description |
|---|---|
| init | Constructs a new instance of ColorBuilder |
Methods
| Method | Description |
|---|---|
| current | Sets the color value to ‘currentColor’, a CSS keyword that represents the current color context. |
| color | Sets the color value based on a Color object. |
| build | Builds the current color value into a string representation. |
See Also
- module
aspose.svg.builder