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

StickerSlottype

Where one sticker slot sits: its cubie's centre and the direction it faces.

Import it

import type { StickerSlot } from "@johnmorrisdotca/kyuubu";

Definition

type StickerSlot = {
    centre: Vec3;
    normal: Vec3;
};

Members

NameTypeDescription
centreVec3
normalVec3

Examples

import type { StickerSlot } from "@johnmorrisdotca/kyuubu";
import { cubeSlots } from "@johnmorrisdotca/kyuubu";

const value: StickerSlot = cubeSlots(3).slots[0]!;
console.log(value.normal);
[ 0, 1, 0 ]

What it prints (run when this page was built)

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