04.04.2013 Views

Processing: Creative Coding and Computational Art

Processing: Creative Coding and Computational Art

Processing: Creative Coding and Computational Art

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

int ballCount = 500;<br />

int ballSize = 8;<br />

int ballSpeed = 3;<br />

float[]xspeed = new float[ballCount];<br />

float[]yspeed= new float[ballCount];<br />

float[]xpos = new float[ballCount];<br />

float[]ypos = new float[ballCount];<br />

float[]wdth = new float[ballCount];<br />

float[]ht = new float[ballCount];<br />

//initialize sketch<br />

void setup(){<br />

//set sketch window size <strong>and</strong> background color<br />

size(400, 400);<br />

background(0);<br />

//initialize values for all balls<br />

for (int i=0; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!