Skip to content

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?

optional a?: 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?

optional space?: "srgb" | "p3"

Defined in: src/tsd/style.ts:31

MIT licensed. Independently made — not by Apple in California. Not affiliated with or endorsed by Apple Inc.