MCPcopy Create free account
hub / github.com/breck7/scroll / tpmt

Function tpmt

external/.d3.js:5074–5076  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

5072
5073// tpmt is two power minus ten times t scaled to [0,1]
5074function tpmt(x) {
5075 return (Math.pow(2, -10 * x) - 0.0009765625) * 1.0009775171065494;
5076}
5077
5078function expIn(t) {
5079 return tpmt(1 - +t);

Callers 6

expInFunction · 0.85
expOutFunction · 0.85
expInOutFunction · 0.85
elasticInFunction · 0.85
elasticOutFunction · 0.85
elasticInOutFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected