Ifįilename ends in ‘.sobj’, save to an sobj file. The animation to an HTML file that uses the Three.js viewer. Ifįilename ends in ‘.html’, save an interactive() version of ![]() If filename is None, then in notebook mode, display theĪnimation otherwise, save the animation to a GIF file. ‘ffmpeg’ by default instead of ‘convert’ when creating GIF Use_ffmpeg - boolean (default: False) if True, use Show_path - boolean (default: False) if True, ![]() sort () v # long time save ( filename = None, show_path = False, use_ffmpeg = False, ** kwds ) #įilename - (default: None) name of save file var ( "x" ) sage: a = animate (, ymin = 0, ymax = 4 ) sage: d = a. ![]() None in this case, a temporary directory will beĪbsolute path to the directory containing the PNG images When dir is other than None, force re-rendering ofĭir – Directory in which to store frames. None, just return the directory in which they are stored. The frames have been previously rendered and dir is Return the absolute path to that directory. Render PNG images of the frames in this animation, saving them show () # not tested png ( dir = None ) # save_image ( filename, ** kwds ) sage: B = MyAnimation (, figsize = 5 ) sage: d = B. : def make_image ( self, frame, filename, ** kwds ). show () # not tested sage: class MyAnimation ( Animation ). join ( pngdir, " ) for i in range ( 4 )]) sage: d = B. : xmin = 0, xmax = 2 * pi, figsize = ). Sage: from import APngAssembler sage: x = SR. ![]() If the input objects do not have a save_image method, then theĪnimation object attempts to make an image by calling its internal show () # optional - ImageMagick # long time : return implicit_plot3d (( x ^ 2 + y ^ 2 + z ^ 2 ), ( x, - 2, 2 ), ( y, - 2, 2 ), ( z, - 2, 2 ), plot_points = 60, contour =, region = lambda x, y, z : x = t or z <= t ) sage: a = animate () sage: a # long time Graphics3d Object sage: a. show () # optional - ImageMagick sage: ( x, y, z ) = SR. 7 ) sage: sp = animate () sage: sp # first frame Graphics3d Object sage: sp # last frame Graphics3d Object sage: sp. : return sphere (( 0, 0, 0 ), 1, color = 'red', opacity =. var ( "s,t" ) sage: def sphere_and_plane ( x ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |