FastLED 3.9.15
Loading...
Searching...
No Matches
gamma.h
Go to the documentation of this file.
1#pragma once
2
3#include "crgb.h"
4#include "fl/stdint.h"
5#include "fl/int.h"
6#include "fl/ease.h"
7
8namespace fl {
9
10// Forward declaration - gamma_2_8 is now defined in fl/ease.h
11extern const u16 gamma_2_8[256];
12
13inline void gamma16(const CRGB &rgb, u16* r16, u16* g16, u16* b16) {
14 *r16 = gamma_2_8[rgb.r];
15 *g16 = gamma_2_8[rgb.g];
16 *b16 = gamma_2_8[rgb.b];
17}
18
19} // namespace fl
Defines the red, green, and blue (RGB) pixel struct.
void gamma16(const CRGB &rgb, u16 *r16, u16 *g16, u16 *b16)
Definition gamma.h:13
const u16 gamma_2_8[256]
Definition ease.cpp:20
IMPORTANT!
Definition crgb.h:20
Representation of an RGB pixel (Red, Green, Blue)
Definition crgb.h:86