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
| Name | Type | Description |
|---|---|---|
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"));#2f7a5aWhat it prints (run when this page was built)