Here’s another really short routine that uses noise() instead of sine waves to move pixels up and down a strand. Code is shown in the Youtube link.
https://www.youtube.com/watch?v=xXkesAfhCZo
Beautiful, thanks for sharing!
What exactly is noise() i keep seeing it but its still going over my head is it reading noise on the power line? The data line? Is it random? Im lost lol
It’s a series of functions:
https://github.com/FastLED/FastLED/blob/master/noise.h
that allow you to create cool patterns. The term they use is ‘perlin simplex noise’, which returns some pretty cool image results.
@Andrew_Tuline , in the code can you explain the reason for the modulo 192 (line 84), and re-scaling using the range 48-192 (line 85)?
Through experimentation, I’d found that the values rarely went over 192 (or below 48), so I just cut off the values between 192 and 255 and scaled accordingly. Call it a ‘hack’. That being said, I could probably tighten the code up a bit if I gave it a bit of thought.
Modified the code to use constrain instead of modulo.