© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
J. MeyerProgramming 101https://doi.org/10.1007/978-1-4842-8194-9_3

3. Animation Using Arrays and Parallel Structures

Jeanine Meyer1  
(1)
Mt Kisco, NY, USA
 

Abstract

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 ...

Get Programming 101: Learn to Code with the Processing Language Using a Visual Approach 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.