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 · SVG faces and looks

TileBackOptionstype

How a back is drawn. Every field may be left out.

Import it

import type { TileBackOptions } from "@johnmorrisdotca/jarajara/faces";

Definition

type TileBackOptions = {
    colour?: string;
    mark?: string;
    title?: string;
    design?: TileDesign;
};

Members

NameTypeDescription
colour (optional)string | undefined

The back's colour as #rgb or #rrggbb, in place of its own; its lines are worked out from it.

mark (optional)string | undefined

A few letters written across the middle of it, a site's name: at most 8 are drawn.

title (optional)string | undefined

What a screen reader says. Unless said, "tile, face down". An empty string makes the picture decoration.

design (optional)TileDesign | undefined

A design whose own back is drawn, for the names a design brings (riichi).

Examples

import type { TileBackOptions } from "@johnmorrisdotca/jarajara/faces";

const value: TileBackOptions = {colour:"#2f5d4a",mark:"中",title:"Tile back"};
console.log(value);
{ colour: '#2f5d4a', mark: '中', title: 'Tile back' }

What it prints (run when this page was built)

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