|
FastLED 3.9.15
|
| LIB8STATIC fl::u8 map8 | ( | fl::u8 | in, |
| fl::u8 | rangeStart, | ||
| fl::u8 | rangeEnd ) |
Map from one full-range 8-bit value into a narrower range of 8-bit values, possibly a range of hues.
E.g. map myValue into a hue in the range blue..purple..pink..red
Combines nicely with the waveform functions (like sin8(), etc) to produce continuous hue gradients back and forth:
Mathematically simiar to lerp8by8(), but arguments are more like Arduino's "map"; this function is similar to
but faster and specifically designed for 8-bit values.
Definition at line 467 of file lib8tion.h.
References LIB8STATIC.
Referenced by fl::ColorFromPalette(), fl::ColorFromPalette(), fl::ColorFromPalette(), fl::ColorFromPalette(), fl::ColorFromPalette(), and fl::ColorFromPalette().
Here is the caller graph for this function: