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

backBasefunction

The colour of a back's plate, which is also the colour of the tile's thickness seen from the back: a built-in back's own base (with the caller's colour), a design's body, or null for a name with no back here.

Import it

import { backBase } from "@johnmorrisdotca/jarajara/faces";

Definition

function backBase(name?: TileBackName, options?: TileBackOptions): string | null

Parameters

NameTypeDescription
name (optional)TileBackName

The local seat name, back name or design name specified by this signature.

options (optional)TileBackOptions

Native game, SVG, sound or presentation options.

Returns

string | null

The colour of a back's plate, which is also the colour of the tile's thickness seen from the back: a built-in back's own base (with the caller's colour), a design's body, or null for a name with no back here.

Examples

import { backBase } from "@johnmorrisdotca/jarajara/faces";

console.log(backBase("jade"));
#2f7a5a

What it prints (run when this page was built)

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