source:
node_modules/d3-ease/src/quad.js
| Last change on this file was e4c61dd, checked in by , 6 months ago | |
|---|---|
|
|
| File size: 192 bytes | |
| Rev | Line | |
|---|---|---|
| [e4c61dd] | 1 | export function quadIn(t) { |
| 2 | return t * t; | |
| 3 | } | |
| 4 | ||
| 5 | export function quadOut(t) { | |
| 6 | return t * (2 - t); | |
| 7 | } | |
| 8 | ||
| 9 | export function quadInOut(t) { | |
| 10 | return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2; | |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
