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.

vertices[8] = new Point3D(w/2,-h/2,d/2);<br />

vertices[9] = new Point3D(w/2,-h/2,-d/2);<br />

vertices[10] = new Point3D(w/2,h/2,-d/2);<br />

vertices[11] = new Point3D(w/2,h/2,d/2);<br />

//back<br />

vertices[12] = new Point3D(-w/2,-h/2,-d/2);<br />

vertices[13] = new Point3D(w/2,-h/2,-d/2);<br />

vertices[14] = new Point3D(w/2,h/2,-d/2);<br />

vertices[15] = new Point3D(-w/2,h/2,-d/2);<br />

//top<br />

vertices[16] = new Point3D(-w/2,-h/2,d/2);<br />

vertices[17] = new Point3D(-w/2,-h/2,-d/2);<br />

vertices[18] = new Point3D(w/2,-h/2,-d/2);<br />

vertices[19] = new Point3D(w/2,-h/2,d/2);<br />

//bottom<br />

vertices[20] = new Point3D(-w/2,h/2,d/2);<br />

vertices[21] = new Point3D(-w/2,h/2,-d/2);<br />

vertices[22] = new Point3D(w/2,h/2,-d/2);<br />

vertices[23] = new Point3D(w/2,h/2,d/2);<br />

}<br />

void create(){<br />

// draw cube<br />

for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!