AnimationRepetitions
是用于 Animate 和相关函数的一个选项,指定这些函数生成的动画在执行多少次后停止.
更多信息
- AnimationRepetitions->Infinity 指定动画应该持续执行,直到单击一个按钮时停止.
- AnimationRepetitions 的设置不一定是整数.
范例
基本范例 (2)
控制 Animate 中动画的周期数:
Animate[Plot[Sin[x + a], {x, 0, 10}], {a, 0, 10}, AnimationRepetitions -> 3, AnimationRunning -> False]控制 ListAnimate 中动画的周期数:
ListAnimate[Table[Expand[(x + y) ^ n], {n, 0, 10}], AnimationRepetitions -> 3, AnimationRunning -> False]相关指南
相关的工作流程
- 把动画部署到网页上
文本
Wolfram Research (2007),AnimationRepetitions,Wolfram 语言函数,https://reference.wolfram.com/language/ref/AnimationRepetitions.html.
CMS
Wolfram 语言. 2007. "AnimationRepetitions." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/AnimationRepetitions.html.
APA
Wolfram 语言. (2007). AnimationRepetitions. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/AnimationRepetitions.html 年
BibTeX
@misc{reference.wolfram_2026_animationrepetitions, author="Wolfram Research", title="{AnimationRepetitions}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/AnimationRepetitions.html}", note=[Accessed: 18-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_animationrepetitions, organization={Wolfram Research}, title={AnimationRepetitions}, year={2007}, url={https://reference.wolfram.com/language/ref/AnimationRepetitions.html}, note=[Accessed: 18-August-2026]}