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.

lots of arrays<br />

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

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

float[]w = new float[blocks];<br />

float[]h = new float[blocks];<br />

float[]py1 = new float[blocks];<br />

float[]py2 = new float[blocks];<br />

float[]radius = new float[blocks];<br />

float[]amplitude = new float[blocks];<br />

float[]frequency = new float[blocks];<br />

float[]ang = new float[blocks];<br />

float[]drag = new float[blocks];<br />

float[]gravity = new float[blocks];<br />

boolean[]isOver = new boolean[blocks];<br />

void setup(){<br />

size(400, 300);<br />

background(0);<br />

noStroke();<br />

frameRate(30);<br />

/* amplitude, gravity, <strong>and</strong> frequency<br />

can be messed with. Also, if you remove<br />

the r<strong>and</strong>om functions, you can get more<br />

st<strong>and</strong>ard wave patterns<br />

*/<br />

for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!