Springs
Simulate steps a ring of damped springs every 16 ms: Sliders set the stiffness and damping, Run pauses, Kick starts again, and a clicked point's spring pulls it out.
Static preview; loading the interactive plot
<InputContext>
<Slider name="stiffness" min={5} max={120} value={40} /> <Checkbox name="run" value={true} /> <Button name="kick" />
<Data value={ring} key="id">
<Simulate initial={{ x: "x0", vx: 0 }} update={{ vx: velocity, x: add(prev("x"), multiply(velocity, divide("@dt", 1000))) }}
running={input("run")} reset={input("kick")} stop={{ tolerance: 0.0005 }}>
<Plot><Points x="x" y="y" select /></Plot>
</Simulate>
</Data>
</InputContext>