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

186<br />

If you mess with the cellWidth variable, you can change the spacing frequency. Now let’s<br />

add the horizontal lines (see Figure 6-11):<br />

size(300, 300);<br />

background(0);<br />

int cellWidth = width/20;<br />

int cellHeight = height/30;<br />

stroke(255);<br />

//vertical lines<br />

for (int i=cellWidth; i

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

Saved successfully!

Ooh no, something went wrong!