|
scimesh 0.3.4
Headless CPU-only 3D software renderer for scientific mesh visualization
|
An RGBA color with floating-point components. More...
#include <types.h>
Public Member Functions | |
| constexpr | Color ()=default |
| constexpr | Color (float r_, float g_, float b_, float a_=1.0f) |
| Construct a Color from RGBA values. | |
Public Attributes | |
| float | r = 0.0f |
| Red channel, [0, 1]. | |
| float | g = 0.0f |
| Green channel, [0, 1]. | |
| float | b = 0.0f |
| Blue channel, [0, 1]. | |
| float | a = 1.0f |
| Alpha (opacity) channel, [0, 1]. 1.0 = fully opaque. | |
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.
|
constexprdefault |
| float scimesh::Color::a = 1.0f |