Reference · Mazes, arrows and mixed boards
Masktype
THE OUTLINES cut out of a square raster: a function from a point of the square (both numbers from -1 to 1, y down) to whether that point is inside the shape. A maze takes the cells whose middles are inside, and the biggest piece of them that touch.
Import it
import type { Mask } from "@johnmorrisdotca/meikyuu";
Definition
type Mask = (u: number, v: number) => boolean;
Examples
import type { Mask } from "@johnmorrisdotca/meikyuu";
import { maskOf } from "@johnmorrisdotca/meikyuu";
const value: Mask = maskOf("heart");
console.log(value);[Function: heart]What it prints (run when this page was built)