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

Class Sample

tests/fl/gfx/rgbw_colorimetric.cpp:1031–1035  ·  view source on GitHub ↗

7^3 - 1 = 342 in-gamut samples. Skips (0,0,0) since both paths short-circuit to (0,0,0,0) without touching the solver.

Source from the content-addressed store, hash-verified

1029// 7^3 - 1 = 342 in-gamut samples. Skips (0,0,0) since both paths short-circuit
1030// to (0,0,0,0) without touching the solver.
1031struct Sample {
1032 u8 r, g, b;
1033 u8 closed_form[4];
1034 u8 lut_path[4];
1035};
1036
1037inline int sample_sweep(Sample* out) {
1038 // Map step v in [0,6] to a u8 in [15, 255] without overflow.

Callers 15

FL_TEST_FILEFunction · 0.50
makeSampleFunction · 0.50
makeSilenceFunction · 0.50
makeDCFunction · 0.50
makeMaxAmplitudeFunction · 0.50
makeMultiHarmonicFunction · 0.50
makeSyntheticVowelFunction · 0.50
makeJitteredVowelFunction · 0.50
makeGuitarStringDecayFunction · 0.50
makeWhiteNoiseFunction · 0.50
makeChirpFunction · 0.50

Calls

no outgoing calls

Tested by 15

makeSampleFunction · 0.40
makeSilenceFunction · 0.40
makeDCFunction · 0.40
makeMaxAmplitudeFunction · 0.40
makeMultiHarmonicFunction · 0.40
makeSyntheticVowelFunction · 0.40
makeJitteredVowelFunction · 0.40
makeGuitarStringDecayFunction · 0.40
makeWhiteNoiseFunction · 0.40
makeChirpFunction · 0.40
makeKickDrumFunction · 0.40
makeSnareFunction · 0.40