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

466<br />

The next sketch builds upon the last, adding r<strong>and</strong>om source coordinates:<br />

/* blend() Function Using SUBTRACT<br />

with R<strong>and</strong>om Source Coodinates */<br />

size(300, 400);<br />

background(loadImage("airport.jpg"));<br />

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

int w = width/12;<br />

int h = height/16;<br />

for (int i=0; i

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

Saved successfully!

Ooh no, something went wrong!