ROSE  0.9.10.69
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 72 of file 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...
 
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 80 of file 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 83 of file 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 93 of file 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 94 of file 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 95 of file 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 96 of file 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 97 of file 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 98 of file 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 99 of file 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 100 of file Color.h.

std::string Rose::Color::HSV::toHtml ( ) const

Convert to HTML string.


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