![]() |
Cinder
0.9.1
|
#include <Color.h>
Public Member Functions | |
ColorT () | |
ColorT (T red, T green, T blue) | |
ColorT (const ColorT< T > &src) | |
ColorT (const char *svgColorName) | |
ColorT (ColorModel cm, const vec3 &v) | |
ColorT (ColorModel cm, float c0, float c1, float c2) | |
template<typename FromT > | |
ColorT (const ColorT< FromT > &src) | |
template<class FromT > | |
ColorT< T > | operator= (const ColorT< FromT > &rhs) |
vec3 | get (ColorModel cm) const |
void | set (ColorModel cm, const vec3 &v) |
T & | operator[] (int n) |
const T & | operator[] (int n) const |
T * | ptr () const |
ColorT< T > | operator+ (const ColorT< T > &rhs) const |
ColorT< T > | operator+ (const glm::vec3 &rhs) const |
ColorT< T > | operator- (const ColorT< T > &rhs) const |
ColorT< T > | operator- (const glm::vec3 &rhs) const |
ColorT< T > | operator* (const ColorT< T > &rhs) const |
ColorT< T > | operator* (const glm::vec3 &rhs) const |
ColorT< T > | operator/ (const ColorT< T > &rhs) const |
ColorT< T > | operator/ (const glm::vec3 &rhs) const |
const ColorT< T > & | operator+= (const ColorT< T > &rhs) |
const ColorT< T > & | operator+= (const glm::vec3 &rhs) |
const ColorT< T > & | operator-= (const ColorT< T > &rhs) |
const ColorT< T > & | operator-= (const glm::vec3 &rhs) |
const ColorT< T > & | operator*= (const ColorT< T > &rhs) |
const ColorT< T > & | operator*= (const glm::vec3 &rhs) |
const ColorT< T > & | operator/= (const ColorT< T > &rhs) |
const ColorT< T > & | operator/= (const glm::vec3 &rhs) |
ColorT< T > | operator+ (T rhs) const |
ColorT< T > | operator- (T rhs) const |
ColorT< T > | operator* (T rhs) const |
ColorT< T > | operator/ (T rhs) const |
const ColorT< T > & | operator+= (T rhs) |
const ColorT< T > & | operator-= (T rhs) |
const ColorT< T > & | operator*= (T rhs) |
const ColorT< T > & | operator/= (T rhs) |
bool | operator== (const ColorT< T > &rhs) const |
bool | operator!= (const ColorT< T > &rhs) const |
ColorT< T > | lerp (float fact, const ColorT< T > &d) const |
operator glm::vec3 () const | |
Static Public Member Functions | |
static ColorT< T > | max () |
static ColorT< T > | black () |
static ColorT< T > | white () |
static ColorT< T > | gray (T value) |
static ColorT< T > | hex (uint32_t hexValue) |
Public Attributes | |
T | r |
T | g |
T | b |
cinder::ColorT< T >::ColorT | ( | ) |
cinder::ColorT< T >::ColorT | ( | T | red, |
T | green, | ||
T | blue | ||
) |
cinder::ColorT< T >::ColorT | ( | const ColorT< T > & | src | ) |
cinder::ColorT< T >::ColorT | ( | const char * | svgColorName | ) |
cinder::ColorT< T >::ColorT | ( | ColorModel | cm, |
const vec3 & | v | ||
) |
cinder::ColorT< T >::ColorT | ( | ColorModel | cm, |
float | c0, | ||
float | c1, | ||
float | c2 | ||
) |
cinder::ColorT< T >::ColorT | ( | const ColorT< FromT > & | src | ) |
ColorT<T> cinder::ColorT< T >::operator= | ( | const ColorT< FromT > & | rhs | ) |
vec3 cinder::ColorT< T >::get | ( | ColorModel | cm | ) | const |
Returns the components of the Color as expressed in the ColorModel cm.
void cinder::ColorT< T >::set | ( | ColorModel | cm, |
const vec3 & | v | ||
) |
Sets the Color using ColorModel cm.
T& cinder::ColorT< T >::operator[] | ( | int | n | ) |
const T& cinder::ColorT< T >::operator[] | ( | int | n | ) | const |
T* cinder::ColorT< T >::ptr | ( | ) | const |
ColorT<T> cinder::ColorT< T >::operator+ | ( | const ColorT< T > & | rhs | ) | const |
ColorT<T> cinder::ColorT< T >::operator+ | ( | const glm::vec3 & | rhs | ) | const |
ColorT<T> cinder::ColorT< T >::operator- | ( | const ColorT< T > & | rhs | ) | const |
ColorT<T> cinder::ColorT< T >::operator- | ( | const glm::vec3 & | rhs | ) | const |
ColorT<T> cinder::ColorT< T >::operator* | ( | const ColorT< T > & | rhs | ) | const |
ColorT<T> cinder::ColorT< T >::operator* | ( | const glm::vec3 & | rhs | ) | const |
ColorT<T> cinder::ColorT< T >::operator/ | ( | const ColorT< T > & | rhs | ) | const |
ColorT<T> cinder::ColorT< T >::operator/ | ( | const glm::vec3 & | rhs | ) | const |
const ColorT<T>& cinder::ColorT< T >::operator+= | ( | const ColorT< T > & | rhs | ) |
const ColorT<T>& cinder::ColorT< T >::operator+= | ( | const glm::vec3 & | rhs | ) |
const ColorT<T>& cinder::ColorT< T >::operator-= | ( | const ColorT< T > & | rhs | ) |
const ColorT<T>& cinder::ColorT< T >::operator-= | ( | const glm::vec3 & | rhs | ) |
const ColorT<T>& cinder::ColorT< T >::operator*= | ( | const ColorT< T > & | rhs | ) |
const ColorT<T>& cinder::ColorT< T >::operator*= | ( | const glm::vec3 & | rhs | ) |
const ColorT<T>& cinder::ColorT< T >::operator/= | ( | const ColorT< T > & | rhs | ) |
const ColorT<T>& cinder::ColorT< T >::operator/= | ( | const glm::vec3 & | rhs | ) |
ColorT<T> cinder::ColorT< T >::operator+ | ( | T | rhs | ) | const |
ColorT<T> cinder::ColorT< T >::operator- | ( | T | rhs | ) | const |
ColorT<T> cinder::ColorT< T >::operator* | ( | T | rhs | ) | const |
ColorT<T> cinder::ColorT< T >::operator/ | ( | T | rhs | ) | const |
const ColorT<T>& cinder::ColorT< T >::operator+= | ( | T | rhs | ) |
const ColorT<T>& cinder::ColorT< T >::operator-= | ( | T | rhs | ) |
const ColorT<T>& cinder::ColorT< T >::operator*= | ( | T | rhs | ) |
const ColorT<T>& cinder::ColorT< T >::operator/= | ( | T | rhs | ) |
bool cinder::ColorT< T >::operator== | ( | const ColorT< T > & | rhs | ) | const |
bool cinder::ColorT< T >::operator!= | ( | const ColorT< T > & | rhs | ) | const |
ColorT<T> cinder::ColorT< T >::lerp | ( | float | fact, |
const ColorT< T > & | d | ||
) | const |
|
static |
|
static |
|
static |
|
static |
|
static |
Returns a color from a hexadecimal-encoded RGB triple. For example, red is 0xFF0000.
cinder::ColorT< T >::operator glm::vec3 | ( | ) | const |
T cinder::ColorT< T >::r |
T cinder::ColorT< T >::g |
T cinder::ColorT< T >::b |