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.

*<br />

Curves II<br />

Ira Greenberg, December 4, 2005<br />

*/<br />

int particles = 25;<br />

float[]x = new float[particles];<br />

float[]y = new float[particles];<br />

float[]xSpeed = new float[particles];<br />

float[]ySpeed = new float[particles];<br />

float[]accel = new float[particles];<br />

float gravity = .75;<br />

void setup(){<br />

size(800, 400);<br />

background(0);<br />

smooth();<br />

strokeWeight(1.5);<br />

stroke(255);<br />

//fill speed arrays with initial values<br />

for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!