|
|
Donner
C++20 SVG rendering library
|
Parse a CSS color, either from a string or the CSS intermediate representation, a list of ComponentValues. More...
#include "donner/css/parser/ColorParser.h"
Static Public Member Functions | |
| static ParseResult< Color > | Parse (std::span< const ComponentValue > components) |
| Parse a CSS color, per https://www.w3.org/TR/2021/WD-css-color-4-20210601/. | |
| static ParseResult< Color > | ParseString (std::string_view str) |
| Parse a CSS color from a string, per https://www.w3.org/TR/2021/WD-css-color-4-20210601/. | |
Parse a CSS color, either from a string or the CSS intermediate representation, a list of ComponentValues.
|
static |
Parse a CSS color, per https://www.w3.org/TR/2021/WD-css-color-4-20210601/.
Supports named colors, hex colors, and color functions such as rgb().
| components | List of component values from the color declaration. |
|
static |
Parse a CSS color from a string, per https://www.w3.org/TR/2021/WD-css-color-4-20210601/.
Supports named colors, hex colors, and color functions such as rgb().
| str | String that can be parsed into a list color declaration. |