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

tileColoursfunction

The colours of a tile's rim and thickness: a design's, or Jarajara's own ivory and jade.

Import it

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

Definition

function tileColours(design?: TileDesign): { face: string; rim: string; side: string; sideEdge: string; body?: string; }

Parameters

NameTypeDescription
design (optional)TileDesign | undefined

The optional tile artwork design.

Returns

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

The colours of a tile's rim and thickness: a design's, or Jarajara's own ivory and jade.

Examples

import { jarajaraDesign, tileColours } from "@johnmorrisdotca/jarajara/faces";

console.log(tileColours(jarajaraDesign()));
{
  face: '#fffdf6',
  rim: '#b9ad96',
  side: '#d9c59b',
  sideEdge: '#a8926a',
  body: '#3a8a68'
}

What it prints (run when this page was built)

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