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.

Hybrid Shape 2<br />

size(600, 600);<br />

curveTightness(-.4);<br />

smooth();<br />

strokeWeight(10);<br />

float sides = 8;<br />

float angle = 360.0/sides/2;<br />

float px = 0, py = 0;<br />

float cx = 0, cy = 0;<br />

float ang = 360.0/(sides+sides/2.0);<br />

float ang2 = ang/2.0;<br />

float rad1 = 250.0;<br />

float rad2 = rad1*2.0;<br />

int x = width/2;<br />

int y = height/2;<br />

beginShape();<br />

for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!