initial commit
This commit is contained in:
19
libraries/FastLED/src/fl/gamma.h
Normal file
19
libraries/FastLED/src/fl/gamma.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include "crgb.h"
|
||||
#include "fl/stdint.h"
|
||||
#include "fl/int.h"
|
||||
#include "fl/ease.h"
|
||||
|
||||
namespace fl {
|
||||
|
||||
// Forward declaration - gamma_2_8 is now defined in fl/ease.h
|
||||
extern const u16 gamma_2_8[256];
|
||||
|
||||
inline void gamma16(const CRGB &rgb, u16* r16, u16* g16, u16* b16) {
|
||||
*r16 = gamma_2_8[rgb.r];
|
||||
*g16 = gamma_2_8[rgb.g];
|
||||
*b16 = gamma_2_8[rgb.b];
|
||||
}
|
||||
|
||||
} // namespace fl
|
||||
Reference in New Issue
Block a user