ROSE
0.11.83.2
|
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.
Definition at line 177 of file Rose/Color.h.
#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 |
Default constructed color.
Default constructed colors are useful when a color is stored in a container, but should not generally be used otherwise. Therefore, a default constructed color will be bright red as a warning.
Definition at line 185 of file Rose/Color.h.
Construct a color from components.
Definition at line 188 of file Rose/Color.h.
|
inline |
Component of color.
HSV components are named hue
, saturation
, value
, and alpha
(or just the first letter of each).
Definition at line 198 of file Rose/Color.h.
|
inline |
Component of color.
HSV components are named hue
, saturation
, value
, and alpha
(or just the first letter of each).
Definition at line 199 of file Rose/Color.h.
|
inline |
Component of color.
HSV components are named hue
, saturation
, value
, and alpha
(or just the first letter of each).
Definition at line 200 of file Rose/Color.h.
|
inline |
Component of color.
HSV components are named hue
, saturation
, value
, and alpha
(or just the first letter of each).
Definition at line 201 of file Rose/Color.h.
|
inline |
Component of color.
HSV components are named hue
, saturation
, value
, and alpha
(or just the first letter of each).
Definition at line 202 of file Rose/Color.h.
|
inline |
Component of color.
HSV components are named hue
, saturation
, value
, and alpha
(or just the first letter of each).
Definition at line 203 of file Rose/Color.h.
|
inline |
Component of color.
HSV components are named hue
, saturation
, value
, and alpha
(or just the first letter of each).
Definition at line 204 of file Rose/Color.h.
|
inline |
Component of color.
HSV components are named hue
, saturation
, value
, and alpha
(or just the first letter of each).
Definition at line 205 of file Rose/Color.h.
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.