本文へ移動

Meikyuu迷宮

シード付きの迷路と矢印パズルを作り、番号付きの問題を進め、平面や立体表面で遊べます。

「迷宮」は迷路のように入り組んだ場所を表す言葉です。 名前について(英語)

目次

リファレンス · SVGの盤

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;
};

メンバー

名前型説明
paperstring
wallstring
framestring
darkboolean
trailstring

例

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'
}

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/meikyuu 3.2.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。