ROSE  0.11.52.0
Public Member Functions | List of all members
Rose::Color::HSV Class Reference

Description

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 <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...
 

Constructor & Destructor Documentation

Rose::Color::HSV::HSV ( )
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.

Rose::Color::HSV::HSV ( Component  h,
Component  s,
Component  v,
Component  a = 1.0 
)
inline

Construct a color from components.

Definition at line 188 of file Rose/Color.h.

Rose::Color::HSV::HSV ( const RGB )

Convert an RGB color to HSV space.

Member Function Documentation

Component Rose::Color::HSV::h ( ) const
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.

Component Rose::Color::HSV::s ( ) const
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.

Component Rose::Color::HSV::v ( ) const
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.

Component Rose::Color::HSV::a ( ) const
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.

Component Rose::Color::HSV::hue ( ) const
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.

Component Rose::Color::HSV::saturation ( ) const
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.

Component Rose::Color::HSV::value ( ) const
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.

Component Rose::Color::HSV::alpha ( ) const
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.


The documentation for this class was generated from the following file: