O'Reilly logo

Learning Processing, 2nd Edition by Daniel Shiffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

3

Interaction

Always remember that this whole thing was started with a dream and a mouse.

—Walt Disney

The quality of the imagination is to flow and not to freeze.

—Ralph Waldo Emerson

In this chapter:

 The flow of a computer program

 The meaning behind setup() and draw()

 Mouse interaction

 Your first dynamic Processing sketch

 Handling events, such as mouse clicks and key presses

3-1 Go with the flow

If you have ever played a computer game, interacted with a digital art installation, or watched a screensaver at three in the morning, you have probably given very little thought to the fact that the software that runs these experiences happens over a period of time. The game starts, you find the secret treasure hidden in magical rainbow land, defeat the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required