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

Function hsv2rgb_dispatch

src/crgb.h:47–59  ·  view source on GitHub ↗

Array-based HSV conversion function selection using the same compile-time defines @param phsv CHSV array to convert to RGB @param prgb CRGB array to store the result of the conversion (will be modified) @param numLeds the number of array values to process

Source from the content-addressed store, hash-verified

45/// @param prgb CRGB array to store the result of the conversion (will be modified)
46/// @param numLeds the number of array values to process
47FASTLED_FORCE_INLINE void hsv2rgb_dispatch( const CHSV* phsv, CRGB * prgb, int numLeds)
48{
49#if defined(FASTLED_HSV_CONVERSION_SPECTRUM)
50 hsv2rgb_spectrum(phsv, prgb, numLeds);
51#elif defined(FASTLED_HSV_CONVERSION_FULL_SPECTRUM)
52 hsv2rgb_fullspectrum(phsv, prgb, numLeds);
53#elif defined(FASTLED_HSV_CONVERSION_RAINBOW)
54 hsv2rgb_rainbow(phsv, prgb, numLeds);
55#else
56 // Default to rainbow for backward compatibility
57 hsv2rgb_rainbow(phsv, prgb, numLeds);
58#endif
59}
60
61FASTLED_FORCE_INLINE void hsv2rgb_dispatch( const CHSV& hsv, CRGB& rgb)
62{

Callers

nothing calls this directly

Calls 3

hsv2rgb_spectrumFunction · 0.85
hsv2rgb_fullspectrumFunction · 0.85
hsv2rgb_rainbowFunction · 0.85

Tested by

no test coverage detected