Reference · SVG boards and notation
colourPropertyfunction
The custom property a colour is set on.
Import it
import { colourProperty } from "@johnmorrisdotca/sugoroku/draw";
Definition
function colourProperty(name: keyof SugorokuColours): string
Parameters
| Name | Type | Description |
|---|---|---|
name | keyof SugorokuColours | The colour property, preset name or sound identifier specified by this signature. |
Returns
string
The custom property a colour is set on.
Examples
import { colourProperty } from "@johnmorrisdotca/sugoroku/draw";
console.log(colourProperty("pointA"));--sg-point-aWhat it prints (run when this page was built)