Hi All,
I am trying to fade to white THEN fade from white to light yellow (250,250,210) then to light pink then back to white.
Is there a simple way to go from color to color that I am missing, my initial try was with 3 for loops but that is not looking right
Try having a look at the blend function. This example might help:
/* blendwave
*
* By: Andrew Tuline
*
* Date: October, 2015
*
* This uses beats, blend and the fill gradient functions to blend a couple of waves together. Again, try making changes to this and see how it looks.
*
*/
#include "FastLED.h" // FastLED library.
#if FASTLED_VERSION < 3001000
#error "Requires FastLED 3.1 or later; check github for latest code."
#endif
// Fixed definitions cannot change on the fly.
#define LED_DT 12 // Data pin to connect to the strip.
#define LED_CK 11 // Clock pin for WS2801 or APA102.
#define COLOR_ORDER BGR // It's GRB for WS2812 and BGR for APA102.
This file has been truncated. show original
@Andrew_Tuline thanks but i have no idea how to plug a color like my light pink into the clr1 or clr 2 variables
could you please demonstrate how i would do this with like a light yellow to a light pink, that would help me figure the rest out
Have a look at the pixel reference at:
marmil
(Marc Miller)
February 28, 2018, 4:56pm
5
Might also have a look at gradient color palettes.
Also from my notes . . (all this takes time to experiment with):
// Blend
leds[i] = blend(CRGB::Red, CRGB::Blue, sin8(mysine));
nblend(leds[0], newcolour, 128); // newcolor is a Colour, either RGB or HSV
nblend(leds[0], CHSV(color, 255,255), 128); // newcolor is a Colour, either RGB or HSV
nblend(led[0], CRGB(0,50,0),255,255);