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

BlockColourstype

The colours a block is drawn in.

Import it

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

Definition

type BlockColours = {
    lip: string;
    lipEdge: string;
    body: string;
    bodyEdge: string;
    seam: string;
    bevel: string;
    shadow: string;
};

Members

NameTypeDescription
lipstring

The ivory layer's side, and the line between it and the back plate.

lipEdgestring
bodystring

The back plate's side, and its outline.

bodyEdgestring
seamstring

The line round every face, which contrasts with it, so a row of tiles can be counted.

bevelstring

The light line just inside it, which gives the face a raised edge.

shadowstring

The shadow a tile casts.

Examples

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

const value: BlockColours = blockColours();
console.log(value);
{
  lip: '#e8e6e0',
  lipEdge: '#adaca7',
  body: '#3a8a68',
  bodyEdge: '#1d4534',
  seam: '#b9ad96',
  bevel: '#ffffff',
  shadow: '#14100a'
}

What it prints (run when this page was built)

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