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 />

608<br />

}<br />

if (parentNode[1]>canvasHeight-shapeRadius/2){<br />

yDirection*=-1;<br />

}<br />

else if (parentNode[1]0){<br />

//Decrease alpha<br />

strokeAlpha-=5;<br />

}<br />

}<br />

else if(key == 's') {<br />

if (strokeAlpha

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

Saved successfully!

Ooh no, something went wrong!