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.

PROCESSING: CREATIVE CODING AND COMPUTATIONAL ART<br />

206<br />

/*<br />

Table Explode<br />

Ira Greenberg, November 21, 2005<br />

*/<br />

void setup(){<br />

size(700, 500);<br />

background(0);<br />

int cols = 24;<br />

int rows = 24;<br />

color[]clrs = new color[cols*rows];<br />

float[]strokeWts = new float[cols*rows];<br />

int xPadding = -20;<br />

int yPadding = -50;<br />

float[]r1 = new float[16];<br />

float[]r2 = new float[16];<br />

float r<strong>and</strong>omFactor = 6;<br />

int colorMin = 0; // 0 = black<br />

float strokeWtMax = 2;<br />

int overDraw = 10;<br />

for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!