Source Academy Modules
    Preparing search index...

    Variable animate_curveConst

    animate_curve: (
        duration: number,
        fps: number,
        drawer: RenderFunction,
        func: CurveAnimation,
    ) => AnimatedCurve = CurveAnimators.animate_curve

    Create a animation of curves using a curve generating function.

    Type Declaration

      • (
            duration: number,
            fps: number,
            drawer: RenderFunction,
            func: CurveAnimation,
        ): AnimatedCurve
      • 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