Mike Chambers

code = joy

JavaScript Voronoi port

with 3 comments

I have always been amazed by some of the digital art work that Mario Klingemann (aka @Quasimondo has created using with Voronois. After doing some searching, I found an early ActionScript 1 Voronoi implementation that Mario did, and I ported it to JavaScript.

I wanted to share the results:

 

Here is a graphic I created by playing around with the code:

 

The code is pretty much a straight up port, with some minor optimizations for JavaScript. I also replaced the rendering from the Flash display list API, to EaselJS. All of the credit really goes to Mario who wrote the original code.

You can view all of the code on my GitHub repository, and grab the original code from Mario’s website.

Written by mikechambers

March 24th, 2011 at 12:19 pm

Posted in General

Tagged with , , , , ,

3 Responses to 'JavaScript Voronoi port'

Subscribe to comments with RSS or TrackBack to 'JavaScript Voronoi port'.

  1. It starts to frag after a lot of dots inserted, I’m in Firefox running Ubuntu OS

    BR

    Ramon Lima

    25 Apr 11 at 6:25 am

  2. Great port Mike! It runs at 4/5 fps on iPad 2

    Mariano KIWO Carrizo

    26 Apr 11 at 8:10 pm

  3. Hey Mike,

    r u coming tomorrow’s Flash event? Last time because of you I had to buy another CalTrain ticket for $6. Please do not take too long this time – they increased the train fair to $6.50 now!!! By the way this time I want to win a Master Collection 5.5. Please get it ready for me and do not forget to pick my ticket!!!!!

    Vivian

    29 Apr 11 at 2:55 pm

Leave a Reply

Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: