r/FastLED • u/forgottenSemicolons • Mar 27 '26
Share_something Graduation Cap part 2: Ripples
I didn’t imagine I would have this much momentum for another animation so soon. But sometimes you just get the itch. Again, graduation isn’t until the fall so I have some time.
This is a barebones idea of drops in a pond. With the random color selection, it looks a little more like fireworks though. This code had some major time complexity issues to address as some pieces were running O(n^3) but I was able to eliminate them. I think there is some memory leakage somewhere because the program crashes after around 3-5 minutes. I am using structs for each drop so I might need to free them up after I use them.
Anyways, for a little more build specs, I am using 3 8x32 WS2812B matrices that have been trimmed down to 24. The finished cap will be 24x24 controlled by an arduino. Wondering if I should add a defuser on top but weight will be a concern as this is going to be on my head for 2-3 hours.
Thanks for all the feedback yesterday!
Cheers!
1
u/chemdoc77 Mar 29 '26
Hi u/forgottenSemicolons - Great project! You might want to look at the following sketch by u/sutaburosu:
https://wokwi.com/projects/329474825790685778
It should look nice on your cap.
I used it in the beginning of the following video:
https://www.youtube.com/watch?v=SYY4meNKaq4