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 elements

SCRAMBLE_ELEMENT_ATTRIBUTESconstant

The attributes the element reads. Changing any draws the cube afresh, except pace and paused, which change the loop alone.

Import it

import { SCRAMBLE_ELEMENT_ATTRIBUTES } from "@johnmorrisdotca/kyuubu/element";

Definition

const SCRAMBLE_ELEMENT_ATTRIBUTES: readonly ["size", "pace", "paused", "scale", "width", "theme", "faces", "interactive", "seed", "lang"] = [
    "size",
    "pace",
    "paused",
    "scale",
    "width",
    "theme",
    "faces",
    "interactive",
    "seed",
    "lang",
] as const

Examples

import { SCRAMBLE_ELEMENT_ATTRIBUTES } from "@johnmorrisdotca/kyuubu/element";

console.log(SCRAMBLE_ELEMENT_ATTRIBUTES);
[
  'size',   'pace',
  'paused', 'scale',
  'width',  'theme',
  'faces',  'interactive',
  'seed',   'lang'
]

What it prints (run when this page was built)

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