Skip to main content

Type Alias: RGB

RGB: object

Represents a color in the RGB color space. Values for r, g, and b should be between 0 and 255. The alpha channel 'a' is optional and should be between 0 and 1 if provided.

Type declaration

NameTypeDefined in
a?numbertypes.ts:12
bnumbertypes.ts:11
gnumbertypes.ts:10
rnumbertypes.ts:9

Defined in

types.ts:8