At My Fingertips

Documentation

Documentation

Function from library pytamaro
Side Effects

save_animation(filenamegraphics)

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('flash.gif', [rectangle(50, 50, yellow), rectangle(50, 50, black)])

Logo of PyTamaro

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

Privacy PolicyPlatform Version 4153f55 (Wed, 02 Apr 2025 06:58:19 GMT)