Documentation

Function defined in library pytamaro
Side Effects

save_animation(filename, graphics)

save_animationfilenamegraphics

Save a sequence of graphics as an animation (GIF).

Graphics are sequentially reproduced (normally at 25 frames per second) in a loop (unless specificied otherwise).

filenamename of the file to create, including the extension ‘.gif’

graphicslist of graphics to be saved as an animation

Code
save_animation('colors.gif', [rectangle(50, 50, hsv_color(hue, 1, 1)) for hue in range(360)])

PyTamaro logo

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy Policy • Platform Version 7dd0569a (October 21, 2026 at 7:47:45 AM UTC)