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

3. Animation Using Arrays and Parallel Structures

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

Animation is the technique of producing a sequence of still pictures fast enough that our eye–mind connection interprets the sequence as motion. This chapter introduces the topic of animation by presenting four sketches. You’ll first implement a bouncing ball, namely a circle that moves in a window, changing direction (bouncing) off the sides. You’ll then implement a set of three bouncing balls, a bouncing pentagon, and a bouncing polygon in which the user can change the number of sides by pressing the mouse button.

Before actually implementing the sketches, I present ...

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.