kazuGeometryfunction
Where everything is in the drawing of a puzzle of this kind and side.
Import it
import { kazuGeometry } from "@johnmorrisdotca/kazu/draw";
Definition
function kazuGeometry(kind: KazuKind, size: number): KazuGeometry
Parameters
| Name | Type | Description |
|---|---|---|
kind | "number-place" | "jigsaw" | "diagonal" | "sum-cages" | "more-or-less" | "towers" | The native number-grid puzzle key. |
size | number | The supported square grid side length. |
Returns
KazuGeometry
Where everything is in the drawing of a puzzle of this kind and side.
Examples
import { kazuGeometry } from "@johnmorrisdotca/kazu/draw";
console.log(kazuGeometry("number-place",4).centre(0));{ x: 60, y: 60 }What it prints (run when this page was built)