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

292<br />

controlRadius/cos(radians(controlAngle1));<br />

cy2[i] = height/2+sin(radians(angle+controlAngle2))* ➥<br />

controlRadius/cos(radians(controlAngle1));<br />

//increment angle so trig functions keep chugging along<br />

angle+=360.0/points;<br />

}<br />

}<br />

void mousePressed(){<br />

setEllipse(int(r<strong>and</strong>om(3, 36)), r<strong>and</strong>om(-200, 300), r<strong>and</strong>om(-200, 300));<br />

}<br />

Figure 7-34. Bézier Ellipse sketch, example 1

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

Saved successfully!

Ooh no, something went wrong!