Donner 0.5.1
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
Color.h File Reference
#include <cstdint>
#include <optional>
#include <ostream>
#include <string_view>
#include <variant>
Include dependency graph for Color.h:
This graph shows which files directly or indirectly include this file:

Classes

struct  donner::css::RGBA
 Represents as 32-bit RGBA color, with each component in the range [0, 255]. More...
struct  donner::css::HSLA
 Represents an HSLA color. More...
struct  donner::css::Color
 Represents a CSS color value, like a RGBA color from a #rrggbb or #rgb hex value, or the currentcolor keyword. More...
struct  donner::css::Color::CurrentColor
 Represents the currentColor keyword. More...

Namespaces

namespace  donner
 Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css.
namespace  donner::css
 Donner CSS library, a standalone composable CSS parser.

Functions

constexpr Color donner::css::RgbHex (uint32_t value)
 Construct a donner::css::Color from a 24-bit RGB hex literal.
constexpr Color donner::css::RgbaHex (uint32_t value)
 Construct a donner::css::Color from a 32-bit RGBA hex literal.