visbrain.objects.SceneObj.record_animation

SceneObj.record_animation(name, n_pic=10)[source][source]

Record an animated scene and save as a *.gif file.

Note that this method :

  • Only 3D objects can be animated.

  • Requires the python package imageio

Parameters
namestring

Name of the gif file (e.g ‘myfile.gif’)

n_picint | 10

Number of pictures to use to render the gif.