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

Method getValue

plugins/tweenSystem.js:191–194  ·  view source on GitHub ↗

Get the current interpolated value (the value most recently passed to * the callback). Returns a number, Vector2, or Color depending on the * tween's start/end types. * @returns {number|Vector2|Color} * @memberof TweenSystem

()

Source from the content-addressed store, hash-verified

189 * @returns {number|Vector2|Color}
190 * @memberof TweenSystem */
191 getValue()
192 {
193 return this.interp(this.life);
194 }
195
196 /** Compute the interpolated value at the given remaining `life`.
197 * At life === duration the result is `start`; at life === 0 it is `end`.

Callers 3

tween.test.mjsFile · 0.80
codeInputFunction · 0.80
restartCodeFunction · 0.80

Calls 1

interpMethod · 0.95

Tested by

no test coverage detected