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.
10 plus ones
Shared publicly•View activity
- Jason CoonModerator+2Beautiful, thanks for sharing!Mar 18, 2017
- 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 lolMar 18, 2017
- It's a series of functions:
github.com - FastLED
that allow you to create cool patterns. The term they use is 'perlin simplex noise', which returns some pretty cool image results.
https://www.google.ca/search?q=perlin+simplex+noiseMar 18, 2017
- Nice!Mar 18, 2017
- , in the code can you explain the reason for the modulo 192 (line 84), and re-scaling using the range 48-192 (line 85)?Mar 18, 2017
- 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.Mar 18, 2017
- Modified the code to use constrain instead of modulo.Mar 19, 2017
Add a comment...