Skip to main content

touchButtonSvg

@zylem/game-lib


@zylem/game-lib / input-ui / touchButtonSvg

Function: touchButtonSvg()

touchButtonSvg(label, options?): string

Defined in: packages/game-lib/src/lib/input-ui/svg-assets.ts:52

Stylized button SVG with a centered label. The accent color drives the outer stroke, the inner translucent fill, and the label text color, so each button can have its own visual identity within a shared theme.

Parameters​

label​

string

Display text (length affects font size, like the engine default).

options?​

TouchButtonSvgOptions = \{\}

accent overrides the theme accent; theme selects the palette.

Returns​

string