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
| Name | Type | Description |
|---|---|---|
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));trueWhat it prints (run when this page was built)