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 · Cuboid engine

CuboidDragPicktype

The layer a drag has picked: its axis and layer, the way across the screen (a unit vector, x right and y down) that turns it forwards by the right-hand rule, and whether it can only be turned by a half turn.

Import it

import type { CuboidDragPick } from "@johnmorrisdotca/kyuubu/cuboid";

Definition

type CuboidDragPick = {
    axis: CubeAxis;
    layer: number;
    along: [
        number,
        number
    ];
    halfOnly: boolean;
};

Members

NameTypeDescription
axisCubeAxis
layernumber
along[number, number]
halfOnlyboolean

Examples

import type { CuboidDragPick } from "@johnmorrisdotca/kyuubu/cuboid";


const value: CuboidDragPick = { axis: 1, layer: 0, along: [1, 0], halfOnly: true };
console.log(value.halfOnly);
true

What it prints (run when this page was built)

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