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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PROCESSING: CREATIVE CODING AND COMPUTATIONAL ART<br />

376<br />

Next, I’ll use the last solution as part of a sketch for a tessellated plane (see Figure 9-28):<br />

/*<br />

Tessellated Plane<br />

Ira Greenberg, December 30, 2005<br />

*/<br />

void setup(){<br />

size(400, 400);<br />

smooth();<br />

tesselate(6, 20);<br />

}<br />

void tesselate(int points, int radius){<br />

/* catch <strong>and</strong> h<strong>and</strong>le out of<br />

range point count */<br />

if (points

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

Saved successfully!

Ooh no, something went wrong!