DEFAULT_COLOURS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The standard colours, by the letter a solved face carries: white up, red right, green front, yellow down, orange left, blue back.
インポート
import { DEFAULT_COLOURS } from "@johnmorrisdotca/kyuubu";
定義
const DEFAULT_COLOURS: Readonly<Record<"U" | "R" | "F" | "D" | "L" | "B", string>> = {
U: "#f7f7f2",
R: "#c8102e",
F: "#009b48",
D: "#ffd500",
L: "#ff5800",
B: "#0046ad",
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
U | string | |
R | string | |
F | string | |
D | string | |
L | string | |
B | string |
例
import { DEFAULT_COLOURS } from "@johnmorrisdotca/kyuubu";
console.log(DEFAULT_COLOURS);{
U: '#f7f7f2',
R: '#c8102e',
F: '#009b48',
D: '#ffd500',
L: '#ff5800',
B: '#0046ad'
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。