Simulating Vines

Using JavaScript, the canvas element, b-splines, recursion and a little randomness, we'll simulate vines forming shapes around an invisible lattice.

JavaScript Spirograph

I remember using Spirograph as a child being amazed by the patterns that seemed to magically appear as I moved the pen. Math is beautiful isn’t it? We’ll explore the math behind the magic by drawing a Spirograph pattern on a canvas element using JavaScript.