TsunagiLooktype
What a board looks like: every option drawTsunagi takes that does not depend on the lines.
Import it
import type { TsunagiLook } from "@johnmorrisdotca/tsunagi/play";
Definition
type TsunagiLook = {
marks?: TsunagiMarks;
fill?: TsunagiFill;
colours?: TsunagiColourSetName | readonly TsunagiColour[];
board?: TsunagiBoardName | TsunagiBoardLook;
coordinates?: boolean;
};
Members
| Name | Type | Description |
|---|---|---|
marks (optional) | TsunagiMarks | undefined | |
fill (optional) | TsunagiFill | undefined | |
colours (optional) | "marble" | "bright" | "colour-blind" | "soft" | readonly TsunagiColour[] | undefined | |
board (optional) | "paper" | "wood" | "green" | "blue" | "red" | "black" | TsunagiBoardLook | undefined | |
coordinates (optional) | boolean | undefined |
Examples
import type { TsunagiLook } from "@johnmorrisdotca/tsunagi/play";
const value: TsunagiLook = {marks:"numbers",fill:"lines",board:"paper"};
console.log(value);{ marks: 'numbers', fill: 'lines', board: 'paper' }What it prints (run when this page was built)