An RGBA color with floating-point components.
Each channel is in the range [0.0, 1.0], where 0.0 is none and 1.0 is full intensity. The alpha channel (a) controls opacity: 1.0 is fully opaque, 0.0 is fully transparent.
Colors are used to describe vertex colors, face colors, light colors, background colors, and more throughout the engine.
- Constructing colors
Color red(1.0f, 0.0f, 0.0f);
Color half_blue(0.0f, 0.0f, 0.5f);
Color transparent_green(0.0f, 1.0f, 0.0f, 0.3f);
An RGBA color with floating-point components.
- See also
- DEFAULT_COLOR, TRANSPARENT_BLACK
Definition at line 88 of file types.h.