Optional
[instance]Optional
alphaOptional
commasWhether commas should separate arguments for a format
Optional
coordOptional
coordsOptional
idOptional
idsOptional
name"color"
Optional
parseFunction to parse a string into a color
Optional
serializeSerialize coordinates and an alpha channel into a string. Must be defined for a format to support serialization
Optional
opts: Record<string, any>Optional
serializeOptional
spaceOptional
testOptional
toWhether to adjust the coordinates to fit in the gamut
Optional
type"function"
Whether to always have alpha at the end (true), never (false), or auto (undefined)