to_color_rgb_from_name
Defined in header: <orcus/spreadsheet/types.hpp>
-
color_rgb_t orcus::spreadsheet::to_color_rgb_from_name(std::string_view s)
Convert a color name to an RGB value. It supports SVG 1.0 color keyword names minus those gray colors with ‘grey’ spelling variants. Note that the name must be all in lowercase.
- Parameters:
s – color name.
- Returns:
struct value representing an RGB value.