Skip to the content

Meikyuu迷宮

Generate seeded mazes and arrow puzzles, follow numbered levels, and play on flat grids or three-dimensional surfaces.

Meikyuu is the Japanese word 迷宮 for labyrinth. About the name

Contents

Reference · Mazes, arrows and mixed boards

turnTransformfunction

The SVG transform that shows a logical drawing turned, or none.

Import it

import { turnTransform } from "@johnmorrisdotca/meikyuu";

Definition

function turnTransform(turn: Turn): string

Parameters

NameTypeDescription
turnTurn

The native quarter-turn setting.

Returns

string

The SVG transform that shows a logical drawing turned, or none.

Examples

import { turnTransform } from "@johnmorrisdotca/meikyuu";

console.log(turnTransform(1));
rotate(-90)

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/meikyuu 3.2.0.