@graphty/graphty-element / catalog / ColorValue
Interface: ColorValue ​
Defined in: graphty-element/src/session/styles/channels.ts:75
A colour on its way to the screen: the numbers a repaint reads, and the string a person wrote or an export writes.
It is an Rgba, so it is a Channel value like any other, and the hex beside it is never re-derived. Components are 0-255 and a is 0-1.
Extends ​
Properties ​
a ​
a:
number
Defined in: graphty-element/src/catalog/types.ts:530
Inherited from ​
b ​
b:
number
Defined in: graphty-element/src/catalog/types.ts:529
Inherited from ​
g ​
g:
number
Defined in: graphty-element/src/catalog/types.ts:528
Inherited from ​
hex ​
readonlyhex:string
Defined in: graphty-element/src/session/styles/channels.ts:77
The same colour as #rrggbb, or #rrggbbaa when it is not fully opaque.
r ​
r:
number
Defined in: graphty-element/src/catalog/types.ts:527