MCPcopy Index your code
hub / github.com/KilledByAPixel/LittleJS / loop

Method loop

plugins/tweenSystem.js:127–132  ·  view source on GitHub ↗

Repeat this tween `n` total times. After each iteration finishes, a * fresh tween with the same parameters takes over via the `then` slot. * `loop()` with no argument loops forever. * * Mutually exclusive with `pingPong`; calling either replaces the other, * and calling

(count = Infinity)

Source from the content-addressed store, hash-verified

125 * @returns {Tween}
126 * @memberof TweenSystem */
127 loop(count = Infinity)
128 {
129 this.loopRemaining = count;
130 this.thenCallback = () => loopContinuation(this);
131 return this;
132 }
133
134 /** Like `loop`, but swap `start` and `end` between iterations so the value
135 * bounces back and forth. `pingPong()` with no argument bounces forever.

Callers 2

tween.test.mjsFile · 0.80
gameInitFunction · 0.80

Calls 1

loopContinuationFunction · 0.85

Tested by

no test coverage detected