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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

98 <strong>Learning</strong> processing<br />

Lesson Two Project<br />

Step 1. Take your Lesson One design and rewrite it with variables instead of<br />

hard-coded values. Consider using a for loop in the creation of your<br />

design.<br />

Step 2. Write a series of assignment operations that alter the values of those<br />

variables and make the design dynamic. You might also use system<br />

variables, such as width , height, mouseX , and mouseY .<br />

Step 3. Using conditional statements, alter the behavior of your design based on<br />

certain conditions. What happens if it <strong>to</strong>uches the edge of the screen, or<br />

if it grows <strong>to</strong> a certain size? What happens if you move the mouse over<br />

elements in your design?<br />

Use the space provided below <strong>to</strong> sketch designs, notes, and pseudocode for your<br />

project.

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

Saved successfully!

Ooh no, something went wrong!