This is a method of getting a smooth color transition from one color to the next for RGB Leds using Johnny-Five. The function changes the hue and goes through steps instead of just jumping to a color.
- Johnny-Five
- color-convert
- Temporal (for non blocking sequences in place of
setInterval
.
It is worth noting that all that's happening is the hue changing. This method can be tested using REPL. Numbers must be between 0–360.
Since this is an RGB LED, be sure to use PWM (Pulse-Width Modulation) pins!