缓动类型 - 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.