本文へ移動

Jarajaraジャラジャラ

麻雀牌を描き、手牌や積み重ねた盤を配置し、シード付きの「合わせ」をひとりでも対戦卓でも遊べます。

「ジャラジャラ」は麻雀牌が触れ合う音を表す言葉です。 名前について(英語)

目次

リファレンス · リーチの図柄

RIICHI定数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

The regular riichi tiles, drawn in a box 300 by 400.

インポート

import { RIICHI } from "@johnmorrisdotca/jarajara/designs/riichi";

定義

const RIICHI: TileDesign

メンバー

名前型説明
namestring

The design's name, as an element's design attribute and loadTileDesign take it: jarajara, riichi, riichi-black.

boxreadonly [number, number]

The width and height each tile's drawing is made in.

bodystring | null

The tile's own plate, the ivory the face is on, with its rounded corners; null for the plain rounded rectangle Jarajara draws.

backstring

The back of a tile, plate and pattern, as a tile lying face down shows it.

facesReadonly<Record<string, string>>

Each face's drawing, by its code (a–P), without the tile under it. A face the design has no drawing for is Jarajara's own.

red (省略可)Readonly<Record<string, string>> | undefined

The red fives, by the face's code (e, n, w: the fives of characters, circles and bamboo), for a design that has them.

colours{ face: string; rim: string; side: string; sideEdge: string; body?: string; }

The colours the tile's thickness and rim are drawn in where a board stacks tiles. body is the colour of the back plate under the ivory (a real tile's green): the thickness shows in it.

plate (省略可)string | undefined

What is drawn on the plate under a face the design has no drawing for, so Jarajara's own ink reads on it: a light panel on a dark tile.

例

import { RIICHI } from "@johnmorrisdotca/jarajara/designs/riichi";
import { tileSvg } from "@johnmorrisdotca/jarajara/faces";
console.log(RIICHI.name, tileSvg("F", { design: RIICHI })?.length);
riichi 2862

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

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

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