MCPcopy Create free account
hub / github.com/GraphiteEditor/Graphite / lerp

Function lerp

website/static/js/component/image-comparison.js:51–51  ·  view source on GitHub ↗
(/** @type {number} **/ a, /** @type {number} **/ b, /** @type {number} **/ t)

Source from the content-addressed store, hash-verified

49 };
50
51 const lerp = (/** @type {number} **/ a, /** @type {number} **/ b, /** @type {number} **/ t) => (1 - t) * a + t * b;
52 const smootherstep = (/** @type {number} **/ x) => x * x * x * (x * (x * 6 - 15) + 10);
53
54 element.addEventListener("pointermove", moveHandler);

Callers 3

lerpMethod · 0.85
morphFunction · 0.85
recenterAnimationStepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected