ToColorModel extension

on

Methods

toCmykColor() CmykColor
Returns this color as a CmykColor.
toColorModel() ColorModel
If this is a ColorModel, return this, otherwise construct a new RgbColor from this Color.
toHsbColor() HsbColor
Returns this color as a HsbColor.
toHsiColor() HsiColor
Returns this color as a HsiColor.
toHslColor() HslColor
Returns this color as a HslColor.
toHspColor() HspColor
Returns this color as a HspColor.
toLabColor() LabColor
Returns this color as a LabColor.
toOklabColor() OklabColor
Returns this color as an OklabColor.
toRgbColor() RgbColor
Returns this color as a RgbColor.
toXyzColor() XyzColor
Returns this color as a XyzColor.