O'Reilly logo

Python 2.6 Graphics Cookbook by Mike Ohlson de Fine

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The vector walking creature

We make a pair of walking legs using the vector graphics of Chapter 2, Drawing Fundamental Shapes and Chapter 4, Animation Principles, Handling Text. We want to use these legs together with pieces of raster images and see how far we can go in making appealing animations. We import Tkinter, math, and time modules. The math is needed to provide the trigonometry that sustains the geometric relations that move the parts of the leg in relation to each other.

The vector walking creature

Getting ready

We will be using Tkinter and time modules as was done in Chapter 4, again to animate the movement of lines and circles. You will see some trigonometry in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required