07.01.2013 Views

Fractal.Invaders, Substrate (Interview with Jared Tarbell) - Processing

Fractal.Invaders, Substrate (Interview with Jared Tarbell) - Processing

Fractal.Invaders, Substrate (Interview with Jared Tarbell) - Processing

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.

if (mousePressed == true) {<br />

cursor(HAND);<br />

} else {<br />

cursor(MOVE);<br />

}<br />

line(mouseX, 0, mouseX, height);<br />

line(0, mouseY, height, mouseY);<br />

}<br />

These cursor images are part of your computer’s operating system and will appear<br />

differently on different machines.<br />

Exercises<br />

1. Control the position of a shape <strong>with</strong> the mouse. Strive to create a more interesting<br />

relation than one directly mimicking the position of the cursor.<br />

2. Invent three unique shapes that behave differently in relation to the mouse. Each<br />

shape’s behavior should change when the mouse is pressed. Relate the form of<br />

each shape to its behavior.<br />

3. Create a custom cursor that changes as the mouse moves through the<br />

display window.<br />

215 Input 1: Mouse I<br />

23-20<br />

cont.

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

Saved successfully!

Ooh no, something went wrong!