You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
192 B
12 lines
192 B
5 years ago
|
export function quadIn(t) {
|
||
|
return t * t;
|
||
|
}
|
||
|
|
||
|
export function quadOut(t) {
|
||
|
return t * (2 - t);
|
||
|
}
|
||
|
|
||
|
export function quadInOut(t) {
|
||
|
return ((t *= 2) <= 1 ? t * t : --t * (2 - t) + 1) / 2;
|
||
|
}
|