Reference · SVG faces and looks
TILE_BACKSconstant
THE BACKS OF THE TILES, drawn as SVG in the tile's own 30 by 40: what a tile lying face down shows. Five are drawn
here, each in the colours a real set's backs are made in: jade, the green of most sets, with a lattice; bamboo,
the colour of the bamboo that old sets were backed with, with its grain and nodes; blue and red, flat colours
with a ring; and ink, near black with a field of dots. A design brings its own as well (riichi, riichi-black),
named like the design. Any of the five may be given a colour of its own and a few letters of writing.
Import it
import { TILE_BACKS } from "@johnmorrisdotca/jarajara/faces";
Definition
const TILE_BACKS: readonly ["jade", "bamboo", "blue", "red", "ink"] = ["jade", "bamboo", "blue", "red", "ink"] as const
Examples
import { TILE_BACKS } from "@johnmorrisdotca/jarajara/faces";
console.log(TILE_BACKS);[ 'jade', 'bamboo', 'blue', 'red', 'ink' ]What it prints (run when this page was built)