drawTsunagiMarblefunction
One marble on its own, as SVG text: for a legend or an icon. pair is which of the board's pairs it is, from 0.
Import it
import { drawTsunagiMarble } from "@johnmorrisdotca/tsunagi/draw";
Definition
function drawTsunagiMarble(pair: number, options?: { marks?: TsunagiMarks; colours?: TsunagiColourSetName | readonly TsunagiColour[]; label?: string; style?: boolean; id?: string; }): string
Parameters
| Name | Type | Description |
|---|---|---|
pair | number | The zero-based pair index. |
options (optional) | { marks?: TsunagiMarks; colours?: TsunagiColourSetName | readonly TsunagiColour[]; label?: string; style?: boolean; id?: string; } | Native drawing, geometry, game or mount settings. |
Returns
string
One marble on its own, as SVG text: for a legend or an icon. pair is which of the board's pairs it is, from 0.
Examples
import { drawTsunagiMarble } from "@johnmorrisdotca/tsunagi/draw";
console.log(drawTsunagiMarble(0,{marks:"numbers"}).length);529What it prints (run when this page was built)