TransWikia.com

How to generate a non-linear animation?

Mathematica Asked on February 12, 2021

Here is a simple example, as time goes by, the speed of animation playback is increasing

enter image description here

The built-in function Animate seems to only play animation at a uniform speed, there is a related option DefaultDuration, I don’t know how to use it correctly

enter image description here

What is the simple way to create this kind of animation in Mathematica?

One Answer

Just to show what I meant in comments:

With[{tmax = 30},
 Animate[
   Graphics[
     {
       Black, Arrowheads[Large],
       Arrow[{{0, 0}, {t^3 + 10, 0}}]
     },
     PlotRange -> {{-20, tmax^3 + 10}, {-300, 300}},
     PlotRangePadding -> {Scaled[0.05], Scaled[.2]}
   ],
   {t, 1, tmax}
 ]
]

animation

Correct answer by MarcoB on February 12, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP