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.

*Simple Repeating Wave Pattern<br />

Ira Greenberg, October 13, 2005<br />

*/<br />

float y = 0;<br />

float angle = 0;<br />

float amplitude = 5;<br />

float waveGap = 24;<br />

float frequency = 5;<br />

void setup(){<br />

size(400, 400);<br />

background(255);<br />

noFill();<br />

frameRate(30);<br />

}<br />

void draw(){<br />

// stop drawing at the bottom of the sketch window<br />

if (y

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

Saved successfully!

Ooh no, something went wrong!