Related Scripting Object: Color
This struct represents an RGBA color. More...
#include <xsi_color.h>
Public Member Functions |
|
| CColor () | |
| CColor (const CColor &in_color) | |
| CColor (double in_rc, double in_gc, double in_bc, double in_ac) | |
| bool | operator== (const CColor &in_color) const |
| bool | operator!= (const CColor &in_color) const |
Public Attributes |
|
| double | r |
| double | g |
| double | b |
| double | a |
The RBGA component values are stored as double precision numbers.
CColor objects are created from OGLLight and OGLMaterial objects.
Other XSI objects and properties store colors differently:
Scene_Material.Phong.diffuse.green). These component values are normalized and use double precision.B2|B1|B0|G2|G1|G0|R2|R1|R0|0|
Constructs a new CColor object from an existing CColor object.
| CColor | ( | double | in_rc, | |
| double | in_gc, | |||
| double | in_bc, | |||
| double | in_ac | |||
| ) | [inline] |
Constructs a new CColor object from RGBA values.
| in_rc | Red component value. | |
| in_gc | Green component value. | |
| in_bc | Blue component value. | |
| in_ac | Alpha component value. |
| bool operator== | ( | const CColor & | in_color | ) | const [inline] |
| bool operator!= | ( | const CColor & | in_color | ) | const [inline] |
Tests whether two CColor objects are different.
| double r |
Red component value
| double g |
Green component value
| double b |
Blue component value
| double a |
Alpha component value