|
sandbox
|
RGBA color representation and utilities. More...
Go to the source code of this file.
Classes | |
| class | sbx::math::color |
| RGBA color value type. More... | |
| struct | YAML::convert< sbx::math::color > |
| YAML conversion specialization for color. More... | |
| struct | std::hash< sbx::math::color > |
| Hash specialization for color. More... | |
Namespaces | |
| namespace | libsbx |
Functions | |
| auto | sbx::math::operator== (const color &lhs, const color &rhs) noexcept -> bool |
| Equality comparison for colors. More... | |
| auto | sbx::math::operator* (color lhs, const std::float_t value) -> color |
| Scales a color by a scalar factor. More... | |
| auto | operator<< (YAML::Emitter &out, const sbx::math::color &color) -> YAML::Emitter & |
| YAML stream output for color. | |
RGBA color representation and utilities.
This header defines a lightweight RGBA color class using floating-point components in the range [0, 1]. The type is intended for rendering, serialization, hashing, and general math usage.
The color is stored in linear space and provides convenience constructors, named color factories, component accessors, and interoperability with YAML and hashing utilities.
Scales a color by a scalar factor.
| lhs | Color to scale. |
| value | Scale factor. |