main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
398 bytes
|
Rev | Line | |
---|
[d565449] | 1 | # ts-easing
|
---|
| 2 |
|
---|
| 3 | Collection of easing function in TypeScript.
|
---|
| 4 |
|
---|
| 5 | All functions accept a number in range of `[0..1]`.
|
---|
| 6 |
|
---|
| 7 | All functions return a number, which is guaranteed to start at 0 and end at 1.
|
---|
| 8 |
|
---|
| 9 | ```
|
---|
| 10 | f(t), where t in [0..1]
|
---|
| 11 |
|
---|
| 12 | f(0) -> 0
|
---|
| 13 | f(1) -> 1
|
---|
| 14 | ```
|
---|
| 15 |
|
---|
| 16 |
|
---|
| 17 | ## Usage
|
---|
| 18 |
|
---|
| 19 | ```js
|
---|
| 20 | import {easing} from 'ts-easing';
|
---|
| 21 |
|
---|
| 22 | console.log(easing.quadratic(0.5));
|
---|
| 23 | ```
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | ## License
|
---|
| 27 |
|
---|
| 28 | [Unlicense](./LICENSE) — public domain.
|
---|
Note:
See
TracBrowser
for help on using the repository browser.