Life as Clay

Snake-like drawing object

leave a comment »


I’m working through lessons about arrays and object oriented programming. One of the lessons in the book creates a ‘snake’ that looks like a trail that follows the pointer. I reworked it to turn it into an autonomous snake that optionally leaves a trail. Since the bulk of the code is in an object, it’s easy to call as many instances as you want. The best way to view this is to click on this link and go to the OpenProcessing site.

running mandotsdots and square

Advertisements

Written by Clay

November 2, 2009 at 22:19

Posted in Code, Processing

Tagged with , ,

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: