|
Last change
on this file since e4c61dd was e4c61dd, checked in by istevanoska <ilinastevanoska@…>, 6 months ago |
|
Prototype 1.1
|
-
Property mode
set to
100644
|
|
File size:
261 bytes
|
| Line | |
|---|
| 1 | export function circleIn(t) {
|
|---|
| 2 | return 1 - Math.sqrt(1 - t * t);
|
|---|
| 3 | }
|
|---|
| 4 |
|
|---|
| 5 | export function circleOut(t) {
|
|---|
| 6 | return Math.sqrt(1 - --t * t);
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | export function circleInOut(t) {
|
|---|
| 10 | return ((t *= 2) <= 1 ? 1 - Math.sqrt(1 - t * t) : Math.sqrt(1 - (t -= 2) * t) + 1) / 2;
|
|---|
| 11 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.