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

lookAttributesfunction

The attributes (as text) that make an element a Meikyuu drawing: its class, its look, and its custom properties.

Import it

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

Definition

function lookAttributes(look: MazeLook): string

Parameters

NameTypeDescription
lookMazeLook

Native board, trail, wall and line appearance choices.

Returns

string

The attributes (as text) that make an element a Meikyuu drawing: its class, its look, and its custom properties.

Examples

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

console.log(lookAttributes({board:"paper",trail:"green"}));
class="meikyuu" data-board="paper" data-trail="green"

What it prints (run when this page was built)

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