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 />

456<br />

I guess you’ve done enough under-the-hood gazing. Without further interruption, here are<br />

the rest of <strong>Processing</strong>’s filters <strong>and</strong> blends, shown in Figures 10-38 through 10-42:<br />

// THRESHOLD Filter<br />

// filter(THRESHOLD, float threshold level)<br />

// image should be 200 x 200 pixels<br />

size(800, 200);<br />

PImage img = loadImage("moonshadow.jpg");<br />

float thresholdLevel = 1.0;<br />

for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!