Reference · SVG faces and looks
tileBackFacefunction
A back's plate and pattern in the tile's 30 by 40, without the sliver of side or the <svg>: the inside of a
<symbol>, or the back an element puts behind a tile it turns over. For a name that is no back drawn here, the
design given (its own back), and otherwise the jade one.
Import it
import { tileBackFace } from "@johnmorrisdotca/jarajara/faces";
Definition
function tileBackFace(name?: TileBackName, options?: TileBackOptions): string
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
A back's plate and pattern in the tile's 30 by 40, without the sliver of side or the <svg>: the inside of a <symbol>, or the back an element puts behind a tile it turns over. For a name that is no back drawn here, the design given (its own back), and otherwise the jade one.
Examples
import { tileBackFace } from "@johnmorrisdotca/jarajara/faces";
console.log(tileBackFace("jade").length);1994What it prints (run when this page was built)