Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
Create an animation from a list of expressions
ResourceFunction["SimpleListAnimate"][{expr1,expr2,…}] generates an animation whose frames are the successive expri. | |
ResourceFunction["SimpleListAnimate"][list,fps] displays fps frames per second. |
Alignment | Automatic | how to align objects in the display area |
AnimationDirection | Forward | the direction of the animation |
AnimationRepetitions | Infinity | how many times to run before stopping |
AnimationRunTime | 0 | time elapsed since the animation last started running, or 0 if the animation is not running |
AnimationTimeIndex | Automatic | time index for the animation, where 0 is the beginning and the value of DefaultDuration is the end |
DefaultDuration | 5 | the default duration in seconds |
DisplayAllSteps | True | whether to force all expri to be displayed |
ImageSize | All | the overall image size to use |
Animate a sequence of images:
In[1]:= |
Out[1]= |
Create an animated bird:
In[2]:= |
Out[2]= |
Use the resource function BirdSay with the bird:
In[3]:= |
Out[3]= |
Animate a list of Wolfram Language expressions:
In[4]:= |
Out[4]= |
Animate a sequence of expressions:
In[5]:= |
Out[5]= |
Force the expressions to wrap at a fixed width:
In[6]:= |
Out[6]= |
By default, the animation lasts a total of five seconds:
In[7]:= |
Out[7]= |
Control the display rate of each frame using a second argument:
In[8]:= |
Out[8]= |
Use preset values:
In[9]:= |
Out[9]= |
Control the direction of animation:
In[10]:= |
Out[10]= |
Control the animation rate:
In[11]:= |
Out[11]= |
Control the number of animation cycles:
In[12]:= |
Out[12]= |
By default, SimpleListAnimate starts running when evaluated:
In[13]:= |
Out[13]= |
By setting AnimationRunning→False, SimpleListAnimate starts in a paused state:
In[14]:= |
Out[14]= |
Control the time duration of one animation cycle:
In[15]:= |
Out[15]= |
By default, SimpleListAnimate leaves enough space for its content without ever having to resize:
In[16]:= |
Out[16]= |
By setting ImageSize, leave just enough space for the current display:
In[17]:= |
Out[17]= |
A fully custom image size:
In[18]:= |
Out[18]= |
Collect the individual steps in an optimization problem:
In[19]:= |
Out[19]= |
Animate the progression of the solver:
In[20]:= |
Out[20]= |
Collect individual steps when solving the sine-Gordon PDE:
In[21]:= |
Animate the solution progress:
In[22]:= |
Out[22]= |
An implementation of LU decomposition that uses Sow on all intermediate steps:
In[23]:= |
Reap the intermediate results and make an animation:
In[24]:= |
In[25]:= |
Out[25]= |
Use MatrixPlot for larger matrices:
In[26]:= |
Out[26]= |
Show changing moon phases in a month:
In[27]:= |
In[28]:= |
In[29]:= |
In[30]:= |
Out[30]= |
Use SimpleListAnimate to animate output from Table:
In[31]:= |
Out[31]= |
Use Animate for animations that depend on a parameter:
In[32]:= |
Out[32]= |
Use Animator when assembling a custom animation frame:
In[33]:= |
Out[33]= |
Animate a sequence of disks with random sizes:
In[34]:= |
Out[34]= |
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License