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

cuboidNamefunction

A cuboid's name as it is written: 2×3×3.

Import it

import { cuboidName } from "@johnmorrisdotca/kyuubu/cuboid";

Definition

function cuboidName(dims: CuboidDims): string

Parameters

NameTypeDescription
dimsCuboidDims

The cuboid’s x, y and z dimensions, in that order.

Returns

string

A cuboid's name as it is written: 2×3×3.

Examples

import { cuboidName } from "@johnmorrisdotca/kyuubu/cuboid";

const dims = [2, 3, 3] as const;
console.log(cuboidName(dims));
2×3×3

What it prints (run when this page was built)

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