Function GenerateSpringFrames

  • Create an Array of frames using the easing specified. The array size numPoints large, which is by default 100. Easing can be use custom defined frame functions, so, instead of string you can use, e.g.

    GenerateSpringFrames({
    easing: [SpringOutInFrame, 1, 100, 10, 0],
    numPoints: 100
    })

    Note: Be very careful of only setting some of the spring parameters, it can cause errors if you are not careful

    Returns [number[], number]

Generated using TypeDoc