ROSE  0.9.10.2
Public Member Functions | List of all members
Rose::Color::RGB Class Reference

Description

Colors in RGB space.

Definition at line 33 of file Color.h.

#include <Color.h>

Public Member Functions

 RGB ()
 Default constructed color. More...
 
 RGB (Component r, Component g, Component b, Component a=1.0)
 Construct a color specified by components. More...
 
 RGB (const HSV &)
 Convert an HSV color to RGB space. More...
 
std::string toHtml () const
 Convert to HTML string. More...
 
Component r () const
 Component of color. More...
 
Component g () const
 Component of color. More...
 
Component b () const
 Component of color. More...
 
Component a () const
 Component of color. More...
 
Component red () const
 Component of color. More...
 
Component green () const
 Component of color. More...
 
Component blue () const
 Component of color. More...
 
Component alpha () const
 Component of color. More...
 

Constructor & Destructor Documentation

Rose::Color::RGB::RGB ( )
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 41 of file Color.h.

Rose::Color::RGB::RGB ( Component  r,
Component  g,
Component  b,
Component  a = 1.0 
)
inline

Construct a color specified by components.

Definition at line 44 of file Color.h.

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

Convert an HSV color to RGB space.

Member Function Documentation

Component Rose::Color::RGB::r ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 54 of file Color.h.

Component Rose::Color::RGB::g ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 55 of file Color.h.

Component Rose::Color::RGB::b ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 56 of file Color.h.

Component Rose::Color::RGB::a ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 57 of file Color.h.

Component Rose::Color::RGB::red ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 58 of file Color.h.

Component Rose::Color::RGB::green ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 59 of file Color.h.

Component Rose::Color::RGB::blue ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 60 of file Color.h.

Component Rose::Color::RGB::alpha ( ) const
inline

Component of color.

RGB components are named red, green, blue, and alpha (or just the first letter of each).

Definition at line 61 of file Color.h.

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

Convert to HTML string.


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