Linux Today: Linux News On Internet Time.

More on LinuxToday

Python Multimedia: Animations Examples using Pyglet

Sep 01, 2010, 22:17 (0 Talkback[s])
(Other stories by Ninad Sathaye)


Re-Imagining Linux Platforms to Meet the Needs of Cloud Service Providers

[ 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, we will:

* 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

"nstallation prerequisites

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

Complete Story

Related Stories: