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

296<br />

angle+=360.0/4.0;<br />

}<br />

//outer curve<br />

curveTightness(-3);<br />

curve(cx[3], cy[3], cx[0], cy[0], cx[1], cy[1], cx[2], cy[2]);<br />

curve(cx[0], cy[0], cx[1], cy[1], cx[2], cy[2], cx[3], cy[3]);<br />

curve(cx[1], cy[1], cx[2], cy[2], cx[3], cy[3], cx[0], cy[0]);<br />

curve(cx[2], cy[2], cx[3], cy[3], cx[0], cy[0], cx[1], cy[1]);<br />

//middle curve<br />

curveTightness(2);<br />

noFill();<br />

beginShape();<br />

curveVertex(cx2[3], cy2[3]);<br />

curveVertex(cx2[0], cy2[0]);<br />

curveVertex(cx2[1], cy2[1]);<br />

curveVertex(cx2[2], cy2[2]);<br />

curveVertex(cx2[3], cy2[3]);<br />

curveVertex(cx2[0], cy2[0]);<br />

curveVertex(cx2[1], cy2[1]);<br />

endShape();<br />

for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!