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 x = 0, y = 0;<br />

int loopLimit = 200;<br />

//shifts curve to the right<br />

int xShift = width/2;<br />

//shifts curve down<br />

int yShift = height/2;<br />

//fits curve to window<br />

float ratio = height/(4* pow(loopLimit-1, 3)-6*pow(loopLimit-1, 2) ➥<br />

+ 3*loopLimit-1 - 20);<br />

for (int i=-xShift; i

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

Saved successfully!

Ooh no, something went wrong!