MeikyuuBoardLook型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A board's colours: the paper, the walls, the frame, whether it is a dark board, and the line that shows on it when none is chosen.
インポート
import type { MeikyuuBoardLook } from "@johnmorrisdotca/meikyuu/draw";
定義
type MeikyuuBoardLook = {
paper: string;
wall: string;
frame: string;
dark: boolean;
trail: string;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
paper | string | |
wall | string | |
frame | string | |
dark | boolean | |
trail | string |
例
import type { MeikyuuBoardLook } from "@johnmorrisdotca/meikyuu/draw";
import { boardLookOf } from "@johnmorrisdotca/meikyuu/draw";
const value: MeikyuuBoardLook = boardLookOf("paper");
console.log(value);{
paper: '#fbf8f1',
wall: '#1f2320',
frame: '#a98954',
dark: false,
trail: '#2e8b57'
}出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。