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.

PROCESSING: CREATIVE CODING AND COMPUTATIONAL ART<br />

514<br />

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

float[]amplitude = new float[weights];<br />

float[]strokeWt = new float[weights];<br />

float[]damping = new float[weights];<br />

int springSegments = 24, springWidth = 8;<br />

void setup(){<br />

size(600, 400);<br />

frameRate(30);<br />

smooth();<br />

fill(0);<br />

setSpring();<br />

}<br />

void draw(){<br />

background(255);<br />

for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!