raSystem  1.0 bata
raColor.h File Reference

Go to the source code of this file.

Classes

class  raColor
 

Macros

#define raCOLORCON   (0.003921568627450980392156862745098f)
 
#define raCOLORCON   (0.003921568627450980392156862745098f)
 

Functions

raColor operator+ (const raColor &a, const raColor &b)
 
raColor operator- (const raColor &a, const raColor &b)
 
raColor operator- (const raColor &c)
 
raColor operator* (const raColor &a, const raColor &b)
 
raColor operator* (const raColor &c, const float f)
 
raColor operator* (const float f, const raColor &c)
 
raColor operator/ (const raColor &a, const raColor &b)
 
raColor operator/ (const raColor &c, const float f)
 
bool operator== (const raColor &a, const raColor &b)
 
bool operator!= (const raColor &a, const raColor &b)
 
raColor raColorNegate (const raColor &c)
 
float raColorBrightness (const raColor &c)
 
raColor raColorInterpolate (const raColor &c1, const raColor &c2, const float p)
 
raColor raColorMin (const raColor &c1, const raColor &c2)
 
raColor raColorMax (const raColor &c1, const raColor &c2)
 
RAPI raColor raColorFromYUV (float y, float u, float v)
 
RAPI raColor raColorFromHSV (float h, float s, float v)
 
RAPI raColor raColorFromCMY (float c, float m, float y)
 

Macro Definition Documentation

◆ raCOLORCON [1/2]

#define raCOLORCON   (0.003921568627450980392156862745098f)

Definition at line 3 of file raColor.h.

◆ raCOLORCON [2/2]

#define raCOLORCON   (0.003921568627450980392156862745098f)

Function Documentation

◆ operator!=()

bool operator!= ( const raColor a,
const raColor b 
)
inline

Definition at line 66 of file raColor.h.

◆ operator*() [1/3]

raColor operator* ( const raColor a,
const raColor b 
)
inline

Definition at line 58 of file raColor.h.

◆ operator*() [2/3]

raColor operator* ( const raColor c,
const float  f 
)
inline

Definition at line 59 of file raColor.h.

◆ operator*() [3/3]

raColor operator* ( const float  f,
const raColor c 
)
inline

Definition at line 60 of file raColor.h.

◆ operator+()

raColor operator+ ( const raColor a,
const raColor b 
)
inline

Definition at line 55 of file raColor.h.

◆ operator-() [1/2]

raColor operator- ( const raColor a,
const raColor b 
)
inline

Definition at line 56 of file raColor.h.

◆ operator-() [2/2]

raColor operator- ( const raColor c)
inline

Definition at line 57 of file raColor.h.

◆ operator/() [1/2]

raColor operator/ ( const raColor a,
const raColor b 
)
inline

Definition at line 61 of file raColor.h.

◆ operator/() [2/2]

raColor operator/ ( const raColor c,
const float  f 
)
inline

Definition at line 62 of file raColor.h.

◆ operator==()

bool operator== ( const raColor a,
const raColor b 
)
inline

Definition at line 65 of file raColor.h.

◆ raColorBrightness()

float raColorBrightness ( const raColor c)
inline

Definition at line 71 of file raColor.h.

◆ raColorFromCMY()

RAPI raColor raColorFromCMY ( float  c,
float  m,
float  y 
)

Definition at line 14 of file raColor.cpp.

◆ raColorFromHSV()

RAPI raColor raColorFromHSV ( float  h,
float  s,
float  v 
)

Definition at line 19 of file raColor.cpp.

◆ raColorFromYUV()

RAPI raColor raColorFromYUV ( float  y,
float  u,
float  v 
)

Definition at line 5 of file raColor.cpp.

◆ raColorInterpolate()

raColor raColorInterpolate ( const raColor c1,
const raColor c2,
const float  p 
)
inline

Definition at line 72 of file raColor.h.

◆ raColorMax()

raColor raColorMax ( const raColor c1,
const raColor c2 
)
inline

Definition at line 74 of file raColor.h.

◆ raColorMin()

raColor raColorMin ( const raColor c1,
const raColor c2 
)
inline

Definition at line 73 of file raColor.h.

◆ raColorNegate()

raColor raColorNegate ( const raColor c)
inline

Definition at line 70 of file raColor.h.