Reference · Pipes, rules and solving
shapeOffunction
The shape of a piece, from the sides it opens on.
Import it
import { shapeOf } from "@johnmorrisdotca/suido";
Definition
function shapeOf(mask: number): Shape
Parameters
| Name | Type | Description |
|---|---|---|
mask | number | A pipe mask: north 1, east 2, south 4 and west 8. |
Returns
Shape
The shape of a piece, from the sides it opens on.
Examples
import { shapeOf } from "@johnmorrisdotca/suido";
console.log(shapeOf(3));elbowWhat it prints (run when this page was built)