MazeLook型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
What a maze looks like: every option that does not depend on where the line is.
インポート
import type { MazeLook } from "@johnmorrisdotca/meikyuu/draw";
定義
type MazeLook = {
board?: MeikyuuBoardName | MeikyuuBoardLook;
trail?: MeikyuuTrailName | (string & {});
wall?: number;
line?: number;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
board (省略可) | MeikyuuBoardLook | "paper" | "wood" | "green" | "blue" | "red" | "black" | undefined | A board by name, or its colours. |
trail (省略可) | "green" | "blue" | "red" | "violet" | "orange" | (string & {}) | undefined | The line's colour: one of the named ones, or any CSS colour. |
wall (省略可) | number | undefined | The thickness of a wall, in cells. Default 0.12. |
line (省略可) | number | undefined | The thickness of the line, in cells. Default 0.34. |
例
import type { MazeLook } from "@johnmorrisdotca/meikyuu/draw";
const value: MazeLook = {board:"paper",trail:"green"};
console.log(value);{ board: 'paper', trail: 'green' }出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。