Skip to main content

Animation Using Arrays and Parallel Structures

  • Chapter
  • First Online:
Programming 101
  • 844 Accesses

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 the mouse button.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 29.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Jeanine Meyer

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Meyer, J. (2018). Animation Using Arrays and Parallel Structures. In: Programming 101. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3697-0_3

Download citation

Publish with us

Policies and ethics