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
8
namespace
fl
{
9
10
// Forward declaration - gamma_2_8 is now defined in fl/ease.h
11
extern
const
u16
gamma_2_8
[256];
12
13
inline
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
crgb.h
Defines the red, green, and blue (RGB) pixel struct.
ease.h
int.h
fl::gamma16
void gamma16(const CRGB &rgb, u16 *r16, u16 *g16, u16 *b16)
Definition
gamma.h:13
fl::gamma_2_8
const u16 gamma_2_8[256]
Definition
ease.cpp:20
fl
IMPORTANT!
Definition
crgb.h:20
stdint.h
CRGB
Representation of an RGB pixel (Red, Green, Blue)
Definition
crgb.h:86
fl
gamma.h
Generated on Fri Aug 22 2025 20:59:33 for FastLED by
1.13.2