Add fairy snakes pattern #54
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This adds a new pattern that targets the new fairy circles, inspired by the last workshop @Cfhhunt ran.
It starts as one snake then increases to 6 snakes for the small circles and 10 for the big one, alternating in direction and varying in colors:
It doesn't affect any of the other cubes, so it should be good to combine with other patterns. I have one parameter exposed that controls the speed the snakes move at. I tweaked it so that it's easy to follow the snakes on my screen, but not sure if it'll need to be faster or slower to look nice in real life. It does look really cool when it's fast & feels smooth and flowy. But too fast and it's hard to see the motion.
There's lots of other ways to tweak this (like the length of the snakes etc) that I documented in the code.
What it looks like on the bigger circle:
snakes.mp4
Note these gifs are taken in my "entwined web" port (https://github.com/OmarShehata/entwined-web). I prototyped the code in JS for quick prototyping first, then ported it over to Java when I was done. Here's a diff that shows this same pattern implemented in JavaScript: OmarShehata/entwined-web#4.
You can also see the fairy snakes pattern live in the web by going to this URL and selecting "fairySnake" from the dropdown: https://omarshehata.github.io/entwined-web/