© Jeanine Meyer  2018
Jeanine MeyerProgramming 101https://doi.org/10.1007/978-1-4842-3697-0_2

2. Interactions

Jeanine Meyer1 
(1)
Mt Kisco, New York, USA
 

In this chapter, you will learn how to prepare a Processing sketch that reacts to events such as clicking your mouse on the screen.

Note

I use the term player for the person running the program. No matter what term is used, you, the program designer and builder, should have the future user in mind when you are doing the work. You are the user, player, or client when you are testing the program.

The examples for this chapter are a sketch in which polygons are drawn where the player clicks the mouse (see Figure 2-1) and a coin-toss type of application, which in my example, alternates between different ...

Get Programming 101: The How and Why of Programming Revealed Using the Processing Programming Language now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.