Post Format

Baby Steps with processing


I’ve started from scratch, learning Processing using Dan Shiffman’s handy book Learning Processing.Above is the first little creation from the book, a little creature called Zoog, which I’ll be wiring up to respond to mouse clicks and all kinds of computer interactivity. It’s not much to start with, but it’s fun to get my hands dirty with Processing and learn some coding fundamentals. Anybody who’s interested in meeting Zoog can make him too, just copy + paste the following into a Processing sketch;

void setup() {size(593,225); // this is for image size considerations, nothing else!smooth();}void draw() {background(255);// set moderectMode(CENTER);ellipseMode(CENTER);// Body// rect(x1,y1,width,height);stroke(0);fill(135,181,209);rect(100,100,20,100);// Head// ellipse(x1,y1,width,height);fill(255);ellipse(100,70,60,60);// Eyesstroke(0);fill(0);ellipse(85,70,10,20);ellipse(115,70,10,20);// Legs// line(x1,y1,x2,y2);line(90, 150, 80, 160);line(110, 150, 120, 160);// Armsline(90, 110, 70, 120);line(110, 110, 130, 120);}

I’m looking to take Processing as far as possible, whilst being fully aware of it’s live performance abilities.  So far Max/MSP owns the live performance aspects of my work, but I’d like to take things a little bit further and combine realtime interaction with some more considered string/array logging/analysing capabilities.  I’ll be posting future updates on my baby steps into Processing, so watch this space.