Function pingPong

  • Bounces value t between the range of [0, length].

    Parameters

    • t: number
    • length: number

    Returns number