Source Academy Modules
    Preparing search index...

    Function animate_curve

    • Function

      Creates an 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 use for the generated curves

      • func: CurveAnimation

        Curve-generating function that takes a timestamp and returns a Curve

      Returns AnimatedCurve

      Curve animation