Reference · Pipes, rules and solving
bigMasksOffunction
The masks of a big piece's four cells (clockwise from the top left) once it has been turned quarters quarters clockwise from facing north.
Import it
import { bigMasksOf } from "@johnmorrisdotca/suido";
Definition
function bigMasksOf(kind: BigKind | string, quarters: number): number[]
Parameters
| Name | Type | Description |
|---|---|---|
kind | string | The native network, drains or inlet-outlet rule. |
quarters | number | Clockwise quarter turns, per cell or for the piece specified by the signature. |
Returns
number[]
The masks of a big piece's four cells (clockwise from the top left) once it has been turned quarters quarters clockwise from facing north.
Examples
import { bigMasksOf } from "@johnmorrisdotca/suido";
console.log(bigMasksOf("elbow",1));[ 6, 10, 6, 5 ]What it prints (run when this page was built)