ROSE
0.11.132.0
|
Colors in HSV space.
Use this one when possible since most manipulations of color are defined in this domain and therefore must otherwise be converted to/from the RGB space.
#include <Rose/Color.h>
Public Member Functions | |
HSV () | |
Default constructed color. More... | |
HSV (Component h, Component s, Component v, Component a=1.0) | |
Construct a color from components. More... | |
HSV (const RGB &) | |
Convert an RGB color to HSV space. More... | |
std::string | toHtml () const |
Convert to HTML string. More... | |
std::string | toAnsi (Layer::Flag) const |
Convert to ANSI color escape. More... | |
Component | h () const |
Component of color. More... | |
Component | s () const |
Component of color. More... | |
Component | v () const |
Component of color. More... | |
Component | a () const |
Component of color. More... | |
Component | hue () const |
Component of color. More... | |
Component | saturation () const |
Component of color. More... | |
Component | value () const |
Component of color. More... | |
Component | alpha () const |
Component of color. More... | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
std::string Rose::Color::HSV::toHtml | ( | ) | const |
Convert to HTML string.
std::string Rose::Color::HSV::toAnsi | ( | Layer::Flag | ) | const |
Convert to ANSI color escape.