Python Multimedia: Animations Examples using Pyglet
Sep 01, 2010, 22:17 (0 Talkback[s])
(Other stories by Ninad Sathaye)
How to Help Your Business Become an AI Early Adopter
[ Thanks to Naheed
for this link. ]
"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 article by
Ninad Sathaye, author of Python Multimedia Beginner's Guide, 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 article. Specifically,
* 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.
"So let's get on with it. I
"We will cover the prerequisites for the installation of Pyglet
in this section.
"Pyglet provides an API for multimedia application development
using Python. It is an OpenGL-based library, which works on
multiple platforms. It is primarily used for developing gaming
applications and other graphically-rich applications. Pyglet can be
downloaded from http://www.pyglet.org/download.html. Install Pyglet
version 1.1.4 or later. The Pyglet installation is pretty