Hello all, Just a quick Question. Is there a way to incorporate the Sparkle (Quick Flashes of White) Effect with the Color Palette Function? Im not even sure it is possible. (Also Sorry for the limited info, I am at work and am unable to access my Arduino Library)
The sparkle would be an overlay. See Mark’s ‘addglitter’ function here:
Thanks for the Reply +Andrew Tuline. How exactly would I incorporate this using this code. http://pastebin.com/raw/Cb6hrb4C. I am not very Fluent in this stuff…lol
I really do appreciate the help!
Would I Just add
void addGlitter( fract8 chanceOfGlitter)
{
if( random8() < chanceOfGlitter) {
leds[ random16(NUM_LEDS) ] += CRGB::White;
}
}
After the Void Loop?
How would I call the Glitter to one of the Palettes?
I’m kind of hesitant to ‘feed you fish’, so I would suggest that you have a look at the various demos, get them running and modify them. Here’s a nice list to try:
https://gist.github.com/kriegsman
Once you understand a lot of these, you’ll be able to add your own glitter.
- Andrew Tuline Thanks for you help! I don’t really understand much of this I just knew of the Palette and the glitter Options from the library and was curious if you could combine them. I have zero experience other than tweaking a few values here and there. I have a costume I built using the Palette Function and I thought it would be awesome to add the Glitter effect. I’m sure I wouldn’t be able to understand this enough to use it by Thursday :). However, I really do appreciate your time and effort in helping me!
Conceptually, your LEDs array is a single “frame” of your animation. So you render your rainbow in the first step, then render the “sparkle” over the top in a second step.