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.

p[1] = new Point(width-1, height-1);<br />

p[2] = new Point(width/2, 1);<br />

stroke(0);<br />

strokeWeight(1);<br />

fill(225);<br />

triangle(p[0].x, p[0].y, p[1].x, p[1].y, p[2].x, p[2].y);<br />

triBlur();<br />

}<br />

void triBlur(){<br />

triangle(p[0].x+=shift, p[0].y-=shift/2, p[1].x-=shift, ➥<br />

p[1].y-=shift/2, p[2].x, p[2].y+=shift);<br />

if(p[0].x

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

Saved successfully!

Ooh no, something went wrong!