|
SVG for C++
|
#include <svg.hpp>
Public Member Functions | |
| Color | mix (const Color &other, double amount) const |
| Color | tint (double amount) const |
| Color | shade (double amount) const |
| operator std::string () const | |
Static Public Member Functions | |
| static Color | rgb (int red, int green, int blue) |
| static Color | hex (std::string value) |
| static Color | hsl (double hue, double saturation, double lightness) |
| static Color | white () |
| static Color | black () |
CSS color value stored as concrete sRGB channels for palette math.
|
inlinestatic |
Common palette anchor for shading and mixing.
|
inlinestatic |
Build a normalized hex color from 3 or 6 hexadecimal digits.
|
inlinestatic |
Build an sRGB color from hue degrees and saturation/lightness percentages.
Mix this color toward another color by a 0.0-1.0 amount.
|
inline |
Allow Color to be used anywhere an attribute accepts std::string.
|
inlinestatic |
Build an rgb() color from 8-bit channel values.
|
inline |
Mix this color toward black.
|
inline |
Mix this color toward white.
|
inlinestatic |
Common palette anchor for tinting and mixing.