Imma track this topic...
Tip @VillainDino/@Snoopy and anyone else . To understand a project, I find it helps me to recreate that project. I've done that with @MagmaPOP's project (that cool rainbow spinny thingy), which helped me learn more about CoSine and clones; and @Valgo's Stroke Draw, because I had no clue how that worked.
So I suggest doing that. Branch the project, make a new draft and copy the code into it. Change some stuff around to see what will happen - that will help you understand what does what!
Then, you'll learn how to make it from scratch and will be able to do it over and over!
Be sure to leave credit of course
Wow that was long :0