06.01.2013 Views

Learning Processing: A Beginner's Guide to Programming Images ...

Learning Processing: A Beginner's Guide to Programming Images ...

Learning Processing: A Beginner's Guide to Programming Images ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

void draw() {<br />

}<br />

background(0); // Draw a black background<br />

int y = height/2;<br />

Functions 119<br />

// Multiple versions of Zoog are displayed by using a for loop<br />

for (int x = 80; x < width; x + = 80) {<br />

}<br />

drawZoog(x,100,60,60,16);<br />

_____________________________________________________________________<br />

_____________________________________________________________________<br />

_____________________________________________________________________<br />

_____________________________________________________________________<br />

_____________________________________________________________________<br />

_____________________________________________________________________<br />

_____________________________________________________________________<br />

_____________________________________________________________________<br />

Exercise 7-10: Rewrite your Lesson Two Project using functions. Still 10! A copy was sent in<strong>to</strong><br />

newnum so num has not changed.

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

Saved successfully!

Ooh no, something went wrong!