|
ROSE 0.11.145.354
|
Colors in HSV space.
Use HSV 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. | |
| HSV (Component h, Component s, Component v, Component a=1.0) | |
| Construct a color from components. | |
| HSV (const RGB &) | |
| Convert an RGB color to HSV space. | |
| std::string | toHtml () const |
| Convert to HTML string. | |
| std::string | toAnsi (Layer) const |
| Convert to ANSI color escape. | |
| Component | h () const |
| Component of color. | |
| Component | s () const |
| Component of color. | |
| Component | v () const |
| Component of color. | |
| Component | a () const |
| Component of color. | |
| Component | hue () const |
| Component of color. | |
| Component | saturation () const |
| Component of color. | |
| Component | value () const |
| Component of color. | |
| Component | alpha () const |
| Component of color. | |
|
inline |
Construct a color from components.
The components are each values between zero and one. Values outside this domain are clipped.
Definition at line 193 of file Color.h.
References Rose::Color::clip().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |