Cartoons have always fascinated the young and old alike. An animation is where the imaginary creatures become alive and take us to a totally different world.
Animation is a sequence of frames displayed quickly one after the other. This creates an optical illusion where the objects, for instance, appear to be moving around. This chapter will introduce you to the fundamentals of developing animations using Python and Pyglet multimedia application development frameworks. Pyglet is designed to do 3D operations, but we will use it for developing very simple 2D animations in this book.
In this chapter, we shall:
Learn the basics of Pyglet framework. This will be used to develop code to create or play animations.
Learn how to play an existing animation file and create animations using a sequence of images.
Work on project 'Bowling animation', where animations can be controlled using inputs from the keyboard.
Develop code to create an animation using different regions of...