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

CUBE_THEMESconstant

Looks that come with the package. standard is the cube as it is sold; paper is the quieter one the demo site wears, made to sit on warm paper and green felt; stickerless has colour to the edge of every piece.

Import it

import { CUBE_THEMES } from "@johnmorrisdotca/kyuubu";

Definition

const CUBE_THEMES: { readonly standard: { readonly colours: { readonly U: string; readonly R: string; readonly F: string; readonly D: string; readonly L: string; readonly B: string; }; readonly plastic: "#111"; readonly stickerInset: "6%"; readonly stickerRadius: "14%"; }; readonly paper: { readonly colours: { readonly U: "#fffdf7"; readonly R: "#b5452c"; readonly F: "#2f7a4f"; readonly D: "#e0b43b"; readonly L: "#d97a2b"; readonly B: "#2b5f8f"; }; readonly plastic: "#1f2320"; readonly stickerInset: "6%"; readonly stickerRadius: "14%"; }; readonly stickerless: { readonly colours: { readonly U: string; readonly R: string; readonly F: string; readonly D: string; readonly L: string; readonly B: string; }; readonly plastic: "#2a2a2a"; readonly stickerInset: "1.5%"; readonly stickerRadius: "10%"; }; } = {
    standard: { colours: { ...DEFAULT_COLOURS }, plastic: DEFAULT_PLASTIC, stickerInset: "6%", stickerRadius: "14%" },
    paper: {
        colours: { U: "#fffdf7", R: "#b5452c", F: "#2f7a4f", D: "#e0b43b", L: "#d97a2b", B: "#2b5f8f" },
        plastic: "#1f2320",
        stickerInset: "6%",
        stickerRadius: "14%",
    },
    stickerless: { colours: { ...DEFAULT_COLOURS }, plastic: "#2a2a2a", stickerInset: "1.5%", stickerRadius: "10%" },
} as const satisfies Record<string, CubeTheme>

Members

NameTypeDescription
standard{ readonly colours: { readonly U: string; readonly R: string; readonly F: string; readonly D: string; readonly L: string; readonly B: string; }; readonly plastic: "#111"; readonly stickerInset: "6%"; readonly stickerRadius: "14%"; }
paper{ readonly colours: { readonly U: "#fffdf7"; readonly R: "#b5452c"; readonly F: "#2f7a4f"; readonly D: "#e0b43b"; readonly L: "#d97a2b"; readonly B: "#2b5f8f"; }; readonly plastic: "#1f2320"; readonly stickerInset: "6%"; readonly stickerRadius: "14%"; }
stickerless{ readonly colours: { readonly U: string; readonly R: string; readonly F: string; readonly D: string; readonly L: string; readonly B: string; }; readonly plastic: "#2a2a2a"; readonly stickerInset: "1.5%"; readonly stickerRadius: "10%"; }

Examples

import { CUBE_THEMES } from "@johnmorrisdotca/kyuubu";

console.log(Object.keys(CUBE_THEMES).slice(0, 8));
[ 'standard', 'paper', 'stickerless' ]

What it prints (run when this page was built)

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