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 · SVG grids

MazeLooktype

What a maze looks like: every option that does not depend on where the line is.

Import it

import type { MazeLook } from "@johnmorrisdotca/meikyuu/draw";

Definition

type MazeLook = {
    board?: MeikyuuBoardName | MeikyuuBoardLook;
    trail?: MeikyuuTrailName | (string & {});
    wall?: number;
    line?: number;
};

Members

NameTypeDescription
board (optional)MeikyuuBoardLook | "paper" | "wood" | "green" | "blue" | "red" | "black" | undefined

A board by name, or its colours.

trail (optional)"green" | "blue" | "red" | "violet" | "orange" | (string & {}) | undefined

The line's colour: one of the named ones, or any CSS colour.

wall (optional)number | undefined

The thickness of a wall, in cells. Default 0.12.

line (optional)number | undefined

The thickness of the line, in cells. Default 0.34.

Examples

import type { MazeLook } from "@johnmorrisdotca/meikyuu/draw";

const value: MazeLook = {board:"paper",trail:"green"};
console.log(value);
{ board: 'paper', trail: 'green' }

What it prints (run when this page was built)

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