motionSpeed関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How fast they move: fast is ten times the real speed, anything else the real speed.
インポート
import { motionSpeed } from "@johnmorrisdotca/uchusen-rockets";
定義
function motionSpeed(attribute: string | null): MotionSpeed
引数
| 名前 | 型 | 説明 |
|---|---|---|
attribute | string | null | The value of the |
戻り値
MotionSpeed
10 for fast, else 1.
例
import { motionSpeed } from "@johnmorrisdotca/uchusen-rockets";
console.log(motionSpeed("fast"), motionSpeed("on"));10 1出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。