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

maskOffunction

The outline a raster shape is cut with.

Import it

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

Definition

function maskOf(shape: MeikyuuShape): Mask

Parameters

NameTypeDescription
shape"square" | "circle" | "hex" | "triangle" | "heart" | "leaf" | "star" | "ring" | "diamond" | "cross" | "moon" | "hexagon" | "pyramid"

The supported native flat-grid geometry or cut-out shape.

Returns

Mask

The outline a raster shape is cut with.

Examples

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

console.log(maskOf("heart")(0.5,0.5));
true

What it prints (run when this page was built)

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