Been playing around with the NoisePlusPalette in the code examples and ended up with a couple questions.
Is there a way to slow the overall animation (when speed=1) even slower?
Once in the slower ‘speed’ settings, the animation loses some of it’s smoothness… are there parameters that can be adjusted that would slow the overall animation and maintain it’s smoothness? All of the parameters, to date, that I have played around with doesn’t seem to accomplish much.
…seems if I add a delay:
delay(10);
it slows down the overall animation and everything is smoothly transitioning. One question though for the uneducated… what unit of time is (10) of the delay?
Thanks, ended up using the elapsedMillis library… ‘seems’ to work as planned. Now my ‘Thundercloud’ is done… at least the code part. Probably not the most elegant solutions… but… it does the job.
Your use of a millis timer is a better option then using delay in this case since it doesn’t “lock” the main loop up in case you want to do other stuff in the loop also. Nicely done.
(In the code you posted I think you’re missing a closing brace inside your main loop.)
[Edit: re-worded “bracket” to “brace”.]
Hmm… it compiled, loaded and played… but to say it might be missing something, would not be surprising to me. One step forward, three steps back. Thanks
Ok, I think I see what’s going on there now. There’s a open brace commented out at the top of your CustomPalette function, so I think your main loop is using the closing brace from that function as it’s ending. ?? Seems weird. I’m not sure how that’s actually working.
I’d say uncomment that open brace in the CustomPalette function, add a closing brace to your main loop section, and then move “Mark’s xy coordinate mapping code” stuff up to the top just before void setup().
At least that way when reading the code the main loop and the CustomPalette function will each have proper opening and closing braces.