MazeLooktype
What a maze looks like: every option that does not depend on where the line is.
Import it
import type { MazeLook } from "@johnmorrisdotca/meikyuu/draw";
Definition
type MazeLook = {
board?: MeikyuuBoardName | MeikyuuBoardLook;
trail?: MeikyuuTrailName | (string & {});
wall?: number;
line?: number;
};
Members
| Name | Type | Description |
|---|---|---|
board (optional) | MeikyuuBoardLook | "paper" | "wood" | "green" | "blue" | "red" | "black" | undefined | A board by name, or its colours. |
trail (optional) | "green" | "blue" | "red" | "violet" | "orange" | (string & {}) | undefined | The line's colour: one of the named ones, or any CSS colour. |
wall (optional) | number | undefined | The thickness of a wall, in cells. Default 0.12. |
line (optional) | number | undefined | The thickness of the line, in cells. Default 0.34. |
Examples
import type { MazeLook } from "@johnmorrisdotca/meikyuu/draw";
const value: MazeLook = {board:"paper",trail:"green"};
console.log(value);{ board: 'paper', trail: 'green' }What it prints (run when this page was built)