Type Alias: CustomFace
ts
type CustomFace = object;Defined in: src/dice.ts:73
One face of a custom die: what it says, what it is worth in a total if it is worth anything, and a colour for it. The words are text and only ever shown as text.
Properties
label
ts
label: string;Defined in: src/dice.ts:75
What the face says: 1 to MAX_LABEL characters.
value?
ts
optional value?: number;Defined in: src/dice.ts:77
What it adds to a total. Left out of a face that is only words, which adds nothing.
colour?
ts
optional colour?: string;Defined in: src/dice.ts:79
A colour for the face, as #rgb or #rrggbb. Left out for the tray's own.