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
261 B
12 lines
261 B
|
4 months ago
|
export function circleIn(t) {
|
||
|
|
return 1 - Math.sqrt(1 - t * t);
|
||
|
|
}
|
||
|
|
|
||
|
|
export function circleOut(t) {
|
||
|
|
return Math.sqrt(1 - --t * t);
|
||
|
|
}
|
||
|
|
|
||
|
|
export function circleInOut(t) {
|
||
|
|
return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;
|
||
|
|
}
|