© Jeanine Meyer  2018

Jeanine Meyer, Programming 101, https://doi.org/10.1007/978-1-4842-3697-0_2

2. Interactions

Jeanine Meyer

(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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.