MCPcopy Create free account
hub / github.com/FastLED/FastLED / gamma

Function gamma

src/fl/gfx/gamma_lut.h:36–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34// Example: gamma<u8x24>(2.2f) returns constexpr uint32_t
35template <typename Fixed>
36constexpr u32 gamma(float g) FL_NOEXCEPT {
37 return Fixed(g).raw();
38}
39
40// Forward declarations
41template <u32 GammaRaw> struct GammaEval;

Callers

nothing calls this directly

Calls 1

rawMethod · 0.45

Tested by

no test coverage detected