Skip to the content

Jarajaraジャラジャラ

Draw mahjong tiles, arrange racks and stacked boards, and play seeded Awase alone or at a shared table.

Jarajara is the Japanese sound of mahjong tiles rattling together. About the name

Contents

Reference · Black riichi design

RIICHI_BLACKconstant

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

Import it

import { RIICHI_BLACK } from "@johnmorrisdotca/jarajara/designs/riichi-black";

Definition

const RIICHI_BLACK: TileDesign

Members

NameTypeDescription
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 (optional)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 (optional)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.

Examples

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

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jarajara 1.7.0.