Reference · SVG boards and notation
SUGOROKU_COLOUR_NAMESconstant
The names of the colours, as the custom properties spell them (--sg- and the name in kebab case).
Import it
import { SUGOROKU_COLOUR_NAMES } from "@johnmorrisdotca/sugoroku/draw";
Definition
const SUGOROKU_COLOUR_NAMES: readonly (keyof SugorokuColours)[] = [
"frame",
"felt",
"pointA",
"pointB",
"bar",
"tray",
"white",
"whiteEdge",
"black",
"blackEdge",
"number",
"selected",
"target",
"die",
"pip",
"cube",
"cubeInk",
]
Examples
import { SUGOROKU_COLOUR_NAMES } from "@johnmorrisdotca/sugoroku/draw";
console.log(SUGOROKU_COLOUR_NAMES);[
'frame', 'felt',
'pointA', 'pointB',
'bar', 'tray',
'white', 'whiteEdge',
'black', 'blackEdge',
'number', 'selected',
'target', 'die',
'pip', 'cube',
'cubeInk'
]What it prints (run when this page was built)