Skip to Content
Learning Processing
book

Learning Processing

by Daniel Shiffman
April 2009
Intermediate to advanced content levelIntermediate to advanced
472 pages
11h 36m
English
Morgan Kaufmann
Content preview from Learning Processing
Chapter 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 program.

– The meaning behind setup( )anddraw( ).

– Mouse interaction.

– Your first “dynamic”Processing program.

– 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 save princess so-and-so from the evil ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning Processing, 2nd Edition

Learning Processing, 2nd Edition

Daniel Shiffman
Interactive Lecturing

Interactive Lecturing

Elizabeth F. Barkley, Claire H. Major

Publisher Resources

ISBN: 9780080920061