Jared Tarbell’s “Substrate” in AS3

2008-05-26: I fixed some parts of this port. For further details check the updated works post.

Through a long web discovery session, i have come along the website of Jared Tarbell lately. If you aren’t familiar with his works you should definitely have a look.
Needless to say i was very impressed by his procedural image generation approaches, which are based on Processing.

So i decided to port some of his projects to ActionScript3. I have to admit that this wasn’t really a big task, as the source code can practically be copied & pasted directly into FlashDevelop and can be compiled to an SWF.

Something should be noted nevertheless. To achieve acceptable performance in a project like this it is fundamental to work directly with a BitmapData object and not the Graphics instances of the DisplayObjects.
So the only task that had to be done was to write some alpha-blending function and port a handful of Processing specific functions.

So here is my port of Substrate (click to start):

A larger version (1280×720) can be seen here. This version will also restart the animation when a limit of cracks has been reached.

You can also grab the source code and have some fun with it :)

Leave a Reply

You must be logged in to post a comment.