Skip to content

@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 ​

Rgba.a


b ​

b: number

Defined in: graphty-element/src/catalog/types.ts:529

Inherited from ​

Rgba.b


g ​

g: number

Defined in: graphty-element/src/catalog/types.ts:528

Inherited from ​

Rgba.g


hex ​

readonly hex: 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

Inherited from ​

Rgba.r