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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

corner nodes<br />

int nodes = 5;<br />

float nodeStartX[] = new float[nodes];<br />

float nodeStartY[] = new float[nodes];<br />

float[]nodeX = new float[nodes];<br />

float[]nodeY = new float[nodes];<br />

float[]angle = new float[nodes];<br />

float[]frequency = new float[nodes];<br />

// soft-body dynamics<br />

float organicConstant = 1;<br />

void setup(){<br />

size(400, 400);<br />

//center shape in window<br />

centerX = width/2;<br />

centerY = height/2;<br />

// initialize frequencies for corner nodes<br />

for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!