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

boardLookOffunction

The look a board name or board object means.

Import it

import { boardLookOf } from "@johnmorrisdotca/meikyuu/draw";

Definition

function boardLookOf(board: MazeLook["board"]): MeikyuuBoardLook

Parameters

NameTypeDescription
boardMeikyuuBoardLook | "paper" | "wood" | "green" | "blue" | "red" | "black" | undefined

The native arrow board or named maze appearance specified by this signature.

Returns

MeikyuuBoardLook

The look a board name or board object means.

Examples

import { boardLookOf } from "@johnmorrisdotca/meikyuu/draw";

console.log(boardLookOf("paper"));
{
  paper: '#fbf8f1',
  wall: '#1f2320',
  frame: '#a98954',
  dark: false,
  trail: '#2e8b57'
}

What it prints (run when this page was built)

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