tileSvg(size: number, ground: string?, petal: string?, centre: string?, corner: string?) → string
The tile motif: a square tile with a four-petal flower in the middle and a quarter
flower in every corner, so tiles laid side by side make whole flowers at their
corners. Colours: ground, petals, centre, corners.
| arg | type | description |
|---|
| size | number | |
| ground | string? | |
| petal | string? | |
| centre | string? | |
| corner | string? | |
wallBlockSvg(cell: number) → string
| arg | type | description |
|---|
| cell | number | |
background(w: number, h: number) → any
| arg | type | description |
|---|
| w | number | |
| h | number | |
surroundSvg(w: number, h: number, band: number) → string
| arg | type | description |
|---|
| w | number | |
| h | number | |
| band | number | |
flower(cx: number, cy: number) → void
flowers along the band
| arg | type | description |
|---|
| cx | number | |
| cy | number | |
wordmark(size: number, opts: any?) → any
| arg | type | description |
|---|
| size | number | |
| opts | any? | |
label(text: any, style: any?) → any
| arg | type | description |
|---|
| text | any | |
| style | any? | |
button(text: any, onClick: string, opts: any?) → any
A chunky tile button. opts: { id, kind, width, height, fontSize, icon (svg string), sub (second line), disabled }
| arg | type | description |
|---|
| text | any | |
| onClick | string | |
| opts | any? | |
iconButton(svg: string, onClick: string, opts: any?) → any
A round icon button (back, settings, pause).
| arg | type | description |
|---|
| svg | string | |
| onClick | string | |
| opts | any? | |
panel(children: { any }, style: any?) → any
| arg | type | description |
|---|
| children | { any } | |
| style | any? | |
icon(body: string, colour: string?) → string
icons (simple original glyphs, drawn in one colour)
| arg | type | description |
|---|
| body | string | |
| colour | string? | |
back(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
gear(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
pause(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
infinity(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
calendar(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
map(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
swords(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
star(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
lock(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
trophy(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
user(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
play(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
check(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
moves(c: string?) → void
| arg | type | description |
|---|
| c | string? | |
glyph(body: string) → string
Goal glyphs, in full colour (the map badges, goal card, HUD chips and results).
| arg | type | description |
|---|
| body | string | |