save_animation
(
filename
,
graphics
)
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).
filename
name of the file to create, including the extension ‘.gif’
graphics
list of graphics to be saved as an animation
save_animation('colors.gif', [rectangle(50, 50, hsv_color(hue, 1, 1)) for hue in range(360)])
PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy • Platform Version b15482e (Tue, 09 Sep 2025 14:03:12 GMT)