緩動類型 - Rizline中文维基
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
本頁面參考了非本維基百科的內容。
提示
本頁面函數影像使用desmos渲染。

本頁面介紹Rizline關卡檔案格式中easeType的值與其對應的緩動類型。

0 Linear

easeType的值為0時,緩動類型為Linear。

Linear緩動類型的公式為:

[math]\displaystyle{ f(t)=t }[/math]

1 In Quad

easeType的值為1時,緩動類型為In Quad。

In Quad緩動類型的公式為:

[math]\displaystyle{ f(t)=t^2 }[/math]

2 Out Quad

easeType的值為2時,緩動類型為Out Quad。

Out Quad緩動類型的公式為:

[math]\displaystyle{ f(t)=1-(1-t)^2 }[/math]

3 InOut Quad

easeType的值為3時,緩動類型為InOut Quad。

InOut Quad緩動類型的公式為:

[math]\displaystyle{ f(t)= \begin{cases} 2t^2 & ,0 \leq t \lt 0.5\\ 1-2(1-t)^2 & ,0.5 \leq t \leq 1 \end{cases} }[/math]

4 In Cubic

easeType的值為4時,緩動類型為In Cubic。

In Cubic緩動類型的公式為:

[math]\displaystyle{ f(t)=t^3 }[/math]

5 Out Cubic

easeType的值為5時,緩動類型為Out Cubic。

Out Cubic緩動類型的公式為:

[math]\displaystyle{ f(t)=1-(1-t)^3 }[/math]

6 InOut Cubic

easeType的值為6時,緩動類型為InOut Cubic。

InOut Cubic緩動類型的公式為:

[math]\displaystyle{ f(t)= \begin{cases} 4t^3 & ,0 \leq t \lt 0.5\\ 1-4(1-t)^3 & ,0.5 \leq t \leq 1 \end{cases} }[/math]

7 In Quart

easeType的值為7時,緩動類型為In Quart。

In Quart緩動類型的公式為:

[math]\displaystyle{ f(t)=t^4 }[/math]

8 Out Quart

easeType的值為8時,緩動類型為Out Quart。

Out Quart緩動類型的公式為:

[math]\displaystyle{ f(t)=1-(1-t)^4 }[/math]

9 InOut Quart

easeType的值為9時,緩動類型為InOut Quart。

InOut Quart緩動類型的公式為:

[math]\displaystyle{ f(t)= \begin{cases} 8t^4 & ,0 \leq t \lt 0.5\\ 1-8(1-t)^4 & ,0.5 \leq t \leq 1 \end{cases} }[/math]

10 In Quint

easeType的值為10時,緩動類型為In Quint。

In Quint緩動類型的公式為:

[math]\displaystyle{ f(t)=t^5 }[/math]

11 Out Quint

easeType的值為11時,緩動類型為Out Quint。

Out Quint緩動類型的公式為:

[math]\displaystyle{ f(t)=1-(1-t)^5 }[/math]

12 InOut Quint

easeType的值為12時,緩動類型為InOut Quint。

InOut Quint緩動類型的公式為:

[math]\displaystyle{ f(t)= \begin{cases} 16t^5 & ,0 \leq t \lt 0.5\\ 1-16(1-t)^5 & ,0.5 \leq t \leq 1 \end{cases} }[/math]

13 Zero

easeType的值為13時,緩動類型為Zero。

Zero緩動類型的公式為:

[math]\displaystyle{ f(t)=0 }[/math]

14 One

easeType的值為14時,緩動類型為One。

One緩動類型的公式為:

[math]\displaystyle{ f(t)=1 }[/math]

15 In Circle

easeType的值為15時,緩動類型為In Circle。

In Circle緩動類型的公式為:

[math]\displaystyle{ f(t)=1-\sqrt{1-t^2} }[/math]

16 Out Circle

easeType的值為16時,緩動類型為Out Circle。

Out Circle緩動類型的公式為:

[math]\displaystyle{ f(t)=\sqrt{1-(1-t)^{2}} }[/math]

17 Sin

easeType的值為17時,緩動類型為Sin。

Sin緩動類型的公式為:

[math]\displaystyle{ f(t)=\sin(\frac{\pi}{2}t) }[/math]

18 Cos

easeType的值為18時,緩動類型為Cos。

Cos緩動類型的公式為:

[math]\displaystyle{ f(t)=1-\cos(\frac{\pi}{2}t) }[/math]

Cookies help us deliver our services. By using our services, you agree to our use of cookies.