cupertino-files / Color
Interface: Color
Defined in: src/tsd/style.ts:26
An RGB colour with components in 0..1.
space distinguishes sRGB from Display P3. It matters: 26.x documents carry an explicit rgbspace on essentially every colour, and a P3 colour read and written back as plain sRGB would shift on screen.
Properties
a?
optionala?:number
Defined in: src/tsd/style.ts:30
b
b:
number
Defined in: src/tsd/style.ts:29
g
g:
number
Defined in: src/tsd/style.ts:28
r
r:
number
Defined in: src/tsd/style.ts:27
space?
optionalspace?:"srgb"|"p3"
Defined in: src/tsd/style.ts:31