• Create a animation of curves using a curve generating function.

    Parameters

    • duration: number

      The duration of the animation in seconds

    • fps: number

      Framerate of the animation in frames per second

    • drawer: RenderFunction

      Draw function to the generated curves with

    • func: CurveAnimation

      Curve generating function. Takes in a timestamp value and returns a curve

    Returns AnimatedCurve

    Curve Animation