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.

float waveGap = 10;<br />

float frequency = .1;<br />

float ringGrowthRate = .5;<br />

boolean isInactive = true;<br />

void setup(){<br />

size(400, 400);<br />

interval = width*.03;<br />

spacer = interval;<br />

noFill();<br />

frameRate(30);<br />

}<br />

void draw(){<br />

background(0);<br />

stroke(255);<br />

float py = 0;<br />

/* This nested for loop fills the frame<br />

with a wave pattern. Some of its properties<br />

are controlled, in part, by the mouse position*/<br />

for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!