Jordan Eldredge

Drawing mandalas with JavaScript and canvas

|

I was looking through my old blog posts when I came across Drawing mandalas with PHP for my Papa from back in 2008. Having just played with the HTML5 canvas tag as part of my Winamp2-js project, I immediatly thought: "This would be easy to do using Javascript and Canvas".

So I took a stab at it. You can play with it below. The slider allows you to select how many points you want:


Check out the ~30 lines of code on JSFiddle or GitHub