SensESP 3.2.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
crgb.h File Reference
#include <cstdint>
Include dependency graph for crgb.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sensesp::CRGB
 Minimal RGB color struct. More...

Namespaces

namespace  sensesp

Functions

uint8_t sensesp::gamma_correct (uint8_t value)
 Apply gamma correction to an 8-bit value.
uint8_t sensesp::apply_brightness (uint8_t value, uint8_t brightness)
 Apply gamma correction and brightness scaling to a color value.
uint8_t sensesp::rgb_to_luminance (uint8_t r, uint8_t g, uint8_t b)
 Convert RGB color to perceptual luminance.
CRGB sensesp::blend (const CRGB &p1, const CRGB &p2, uint8_t amountOfP2)
 Linear interpolation (blend) between two colors.

Variables

constexpr uint8_t sensesp::kGammaTable [256]
 Gamma correction lookup table (γ=2.2, inverted).