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.

float ang;<br />

int rows = 20;<br />

int cols = 20;<br />

int cubeCount = rows*cols;<br />

int colSpan, rowSpan;<br />

float rotspd = 4;<br />

Cube[]cubes = new Cube[cubeCount];<br />

float[]angs = new float[cubeCount];<br />

float[]rotvals = new float[cubeCount];<br />

void setup(){<br />

size(400, 400, OPENGL);<br />

colSpan = width/(cols-1);<br />

rowSpan = height/(rows-1);<br />

noStroke();<br />

// instantiate cubes<br />

for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!