Skip to the content

Kyuubuキューブ

Turn CSS 3D cubes by touch, keys or notation, reproduce a scramble from a seed, and follow a solve one named step at a time.

Kyuubu (キューブ) is the Japanese spelling of cube. About the name

Contents

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

NameTypeDescription
Ustring
Rstring
Fstring
Dstring
Lstring
Bstring

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)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kyuubu 1.14.1.