I'm converting a number of my animations to use palette lookups as well as

I’m converting a number of my animations to use palette lookups as well as non-blocking delays. Down the road, I’d prefer to use time based animations and pull out delays altogether.

Some will keep the delays just to provide simple examples for noobs.

Thanks for all your help and work and contributions!

I have setup multiple timer checks within my programming now. I use a function_delay, pattern_delay, hue_delay, and fade_delay in my programs. When millis()> function_delay, I bump to the next pattern. When millis()>pattern_delay, I advance the pattern. When millis()>fade_delay, I affect the fading in the pattern. When millis()>hue_delay, I affect/incr the hue. This gives you plenty of time to do other things and a lot more control at tweaking the timing of the whole animation sequence.

Me personally, I prefer EVERY_N_SECONDS / MILLISECONDS.

I’m playing with the EVERY_N_MILLISECONDS as I type. In this case, it’s to slow down a fade rate.

First I have heard of that… You know being a long time FastLED user has its downsides… I have so much code I reuse that I already solved this stuff in and you guys come out with stuff faster than I can even know about it! Can you slow down so I can catch up? :stuck_out_tongue:

@Justin_Eastman You might also want to look at the nblendPaletteTowardPalette capability. It’s pretty sweet.

@Andrew_Tuline Thanks I will check into that… I just got a x-carve cnc machine and have a project that I want to use specific palettes of color so I will have to dig deeper into it… surely it will show up here soon!

The palette crossfade code is discussed here: https://plus.googleapis.com/112916219338292742137/posts/FvLgYPF52Ma

SHHHH! Secret Beta Test! Access to hundreds of professionally-defined color palettes for FastLED!
http://fastled.io/tools/paletteknife/

(OK, actually thousands of color palettes, but you wouldn’t have believed me if I said that right off the bat.)

I’ll announce this thing more broadly after you gentlemen have had a chance to kick the tires and tell me if it works for you. Works pretty well for me, but that proves nothing

Let me know if it works for you?

Wow, that’s cool. The Palette knife link in our toolbar provides a pop-up with a define statement that we copy/paste into our code (near the top is where I’d put it). We can then use the standard targetPalette = purplefly_gp (or whatever was defined) later in the code. Nice. Works!

Working as intended then. Thank you! BTW, what browser and OS?

That would be Chrome on Win 8.1. I can also try IE and FF.

I’d love the data, but it’s not pressing. I tested on Mac/Cr, Mac/Safari, Win/Cr. The bookmarklet itself isn’t rocket surgery, but browser differences are ALWAYS a factor, you know?

The other evening, I put 30+ palettes into a sketch: 1K of progmem. This is gonna be fun.

In FF, it comes out as a single long line (so not working quite right). Tried IE and it wants a default handler for a .c3g file. I chose Sublime, so it just opened Sublime and pasted c3g code to a new file. Wrong code.

So, Chrome seems to be the only one of those 3 that worked for me. Gotta love browsers. Must retest.

Ok! Thank you!

I’ll just say requires Chrome :slight_smile: