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
| 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 |
| 47 | FASTLED_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 | |
| 61 | FASTLED_FORCE_INLINE void hsv2rgb_dispatch( const CHSV& hsv, CRGB& rgb) |
| 62 | { |
nothing calls this directly
no test coverage detected