easeInOut関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
Ease-in-out: slow at both ends, so a camera move does not start or stop with a jerk.
インポート
import { easeInOut } from "@johnmorrisdotca/uchusen-rockets";
定義
function easeInOut(t: number): number
引数
| 名前 | 型 | 説明 |
|---|---|---|
t | number | How far through the move, from 0 to 1 (values outside are held at the ends). |
戻り値
number
The eased progress, from 0 to 1.
例
import { easeInOut } from "@johnmorrisdotca/uchusen-rockets";
console.log(easeInOut(0.5)); // 0.50.5出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。