#include <hps.h>
Public Member Functions | |
HPS_INLINE | RGBColor () |
HPS_INLINE | RGBColor (float r, float g, float b) |
HPS_INLINE | RGBColor (RGB24Color const &c24) |
HPS_INLINE | RGBColor (float gray) |
HPS_INLINE | RGBColor (RGBAS32Color const &c32) |
HPS_INLINE | RGBColor (RGBA32Color const &c32) |
HPS_INLINE | RGBColor (RGBAColor const &c) |
HPS_INLINE bool | IsGray () const |
HPS_INLINE float | Gray () const |
float | Distance (RGBColor const &other_color) const |
HPS_INLINE bool | IsValid () const |
HPS_INLINE bool | operator== (RGBColor const &c) const |
HPS_INLINE bool | operator!= (RGBColor const &c) const |
HPS_INLINE bool | Equals (RGBColor const &c, int in_tolerance=32) const |
HPS_INLINE RGBColor & | operator*= (RGBColor const &c) |
HPS_INLINE RGBColor & | operator+= (RGBColor const &c) |
HPS_INLINE RGBColor & | operator-= (RGBColor const &c) |
HPS_INLINE RGBColor const | operator* (RGBColor const &c) const |
HPS_INLINE RGBColor const | operator+ (RGBColor const &c) const |
HPS_INLINE RGBColor const | operator- (RGBColor const &c) const |
HPS_INLINE RGBColor & | operator*= (float s) |
HPS_INLINE RGBColor & | operator/= (float s) |
HPS_INLINE RGBColor & | operator+= (float s) |
HPS_INLINE RGBColor & | operator-= (float s) |
HPS_INLINE RGBColor const | operator* (float s) const |
HPS_INLINE RGBColor const | operator/ (float s) const |
HPS_INLINE RGBColor const | operator+ (float s) const |
HPS_INLINE RGBColor const | operator- (float s) const |
void | ShowHLS (float &out_hue, float &out_lightness, float &out_saturation) const |
void | ShowHSV (float &out_hue, float &out_saturation, float &out_value) const |
void | ShowHIC (float &out_hue, float &out_intensity, float &out_chromaticity) const |
Static Public Member Functions | |
static HPS_INLINE RGBColor | Black () |
static HPS_INLINE RGBColor | White () |
static HPS_INLINE RGBColor | Invalid () |
static RGBColor | HLS (float in_hue, float in_lightness, float in_saturation) |
static RGBColor | HSV (float in_hue, float in_saturation, float in_value) |
static RGBColor | HIC (float in_hue, float in_intensity, float in_chromaticity) |
Public Attributes | |
float | red |
float | green |
float | blue |
|
inline |
|
inline |
|
explicit |
|
inlineexplicit |
|
explicit |
|
explicit |
|
explicit |
|
inlinestatic |
float HPS::RGBColor::Distance | ( | RGBColor const & | other_color | ) | const |
|
inline |
|
inline |
|
static |
|
static |
|
static |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
void HPS::RGBColor::ShowHIC | ( | float & | out_hue, |
float & | out_intensity, | ||
float & | out_chromaticity | ||
) | const |
void HPS::RGBColor::ShowHLS | ( | float & | out_hue, |
float & | out_lightness, | ||
float & | out_saturation | ||
) | const |
void HPS::RGBColor::ShowHSV | ( | float & | out_hue, |
float & | out_saturation, | ||
float & | out_value | ||
) | const |
|
inlinestatic |
float HPS::RGBColor::blue |
float HPS::RGBColor::green |
float HPS::RGBColor::red |