Reference · Cube engine and views
DEFAULT_COLOURSconstant
The standard colours, by the letter a solved face carries: white up, red right, green front, yellow down, orange left, blue back.
Import it
import { DEFAULT_COLOURS } from "@johnmorrisdotca/kyuubu";
Definition
const DEFAULT_COLOURS: Readonly<Record<"U" | "R" | "F" | "D" | "L" | "B", string>> = {
U: "#f7f7f2",
R: "#c8102e",
F: "#009b48",
D: "#ffd500",
L: "#ff5800",
B: "#0046ad",
}
Members
| Name | Type | Description |
|---|---|---|
U | string | |
R | string | |
F | string | |
D | string | |
L | string | |
B | string |
Examples
import { DEFAULT_COLOURS } from "@johnmorrisdotca/kyuubu";
console.log(DEFAULT_COLOURS);{
U: '#f7f7f2',
R: '#c8102e',
F: '#009b48',
D: '#ffd500',
L: '#ff5800',
B: '#0046ad'
}What it prints (run when this page was built)