Animator
Animator[u]
represents an object that displays with the value of u being continually increased from 0 to 1 with time.
Animator[u,{umin,umax}]
makes u vary from umin to umax.
Animator[u,{umin,umax,du}]
makes u vary in steps du.
Animator[u,{umin,umax},ups]
makes the value of u increase at a rate of ups units per second.
Details and Options
- The default duration is five seconds.
- Animator[Dynamic[s],…] makes the value of s be continually reset with time.
- Animator[u,{umin,Infinity}] will run forever, with u increasing by 1 every second.
- Animator[u,{-Infinity,Infinity}] also allows u to decrease forever if the animation is run in reverse.
- The following options can be given:
-
AnimationDirection Forward the direction of the animation AnimationRate Automatic the rate at which to take variables to vary AnimationRepetitions Infinity how many times to run before stopping AnimationRunning True whether the animation is running 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 Appearance Automatic the overall appearance of the animator AppearanceElements Automatic elements to include in the displayed animator BaselinePosition Automatic what to align with a surrounding text baseline BaseStyle {} base style specifications for the animator DefaultDuration 5. the default duration in seconds DisplayAllSteps False whether to force all discrete steps to be displayed Enabled Automatic whether the animator is enabled, or grayed out Exclusions {} specific u values to exclude ImageMargins 0 margins around the image of the displayed animator ImageSize Automatic the overall image size of the displayed animator - The following elements are included in a default animator: "ProgressSlider", "PlayPauseButton", "FasterSlowerButtons", "DirectionButton". These elements can be specified in any order in a list given as the setting for AppearanceElements.
- Additional possible elements include: "PlayButton", "ResetPlayButton", "PauseButton", "ResetButton".
- Appearance -> "Labeled" displays the current value of the animator as an editable label.
- Animator[] is equivalent to Animator[0].
Examples
open allclose allBasic Examples (3)
Scope (5)
Options (25)
AnimationRunning (2)
By default Animator starts with a moving slider:
By setting AnimationRunning, the slider remains stationary:
AnimationTimeIndex (1)
With default option settings, AnimationTimeIndex runs from 0 to 5:
AppearanceElements (4)
By default Animator consists of a slider and a set of buttons:
By setting AppearanceElements, specify which controls are displayed:
See all the controls together:
Construct a customized Animator:
DisplayAllSteps (1)
Use DisplayAllSteps to force every intermediate step to be performed:
Enabled (2)
Properties & Relations (1)
Animate and ListAnimate use Animator controls:
Possible Issues (1)
The Animator control is driven by a real-time clock; pausing affects display only, not state:
Text
Wolfram Research (2007), Animator, Wolfram Language function, https://reference.wolfram.com/language/ref/Animator.html (updated 2014).
CMS
Wolfram Language. 2007. "Animator." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/Animator.html.
APA
Wolfram Language. (2007). Animator. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Animator.html