gempyre 1.8.1
Loading...
Searching...
No Matches
Gempyre::Color Namespace Reference

RGB handling. More...

Typedefs

using type = Gempyre::dataT
 pixel type
 

Functions

bool is_equal (type a, type b)
 
std::optional< typefrom_html_name (std::string_view name)
 find a HTML color as Color::type
 
std::optional< typeget_color (std::string_view color)
 get color from string, where string is a HTML color name, #RRGGBB, #RRGGBBAA, 0xRRGGBB or 0xRRGGBBAA
 

Variables

constexpr std::array< std::pair< std::string_view, type >, 147 > html_colors
 HTML colors.
 

Detailed Description

RGB handling.