|
Sound Byte Libs 0.5.1-121-g3358a44
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
|
RGB color types and utilities. More...
RGB color types and utilities.
Definition in file color.hpp.
#include <cstdint>Go to the source code of this file.
Classes | |
| struct | sbl::components::display::Rgb |
| Simple 8-bit RGB color triple. Aggregate — constexpr constructible. More... | |
Namespaces | |
| namespace | sbl |
| Root namespace for all Sound Byte Libs code. | |
| namespace | sbl::components |
| Functional hardware components. | |
| namespace | sbl::components::display |
| RGB LEDs and displays. | |
Functions | |
| Rgb | sbl::components::display::gamma_correct (const Rgb &c) |
| Apply gamma correction to an RGB color. | |
| Rgb | sbl::components::display::rgb_lerp (const Rgb &a, const Rgb &b, uint8_t t) |
| Linear interpolation between two colors. t=0 → a, t=255 → b. | |
| Rgb | sbl::components::display::rgb_scale (const Rgb &c, uint8_t brightness) |
| Scale a color by brightness (0-255). 255 = full, 128 ≈ half, 0 = off. | |
| Rgb | sbl::components::display::gradient (const Rgb *stops, uint8_t n_stops, uint16_t position) |
| Evaluate a multi-stop color gradient at a position. | |
Variables | |
| constexpr uint8_t | sbl::components::display::GAMMA8 [256] |