More Samples
Download Wijmo


The Color class parses colors specified as CSS strings and exposes their red, green, blue, and alpha channels as read-write properties.

It also provides fromHsb and fromHsl methods for creating colors using the HSB and HSL color models instead of RGB, as well as getHsb and getHsl methods for retrieving the color components using those color models.

The Color class also has an interpolate method that creates colors by interpolating between two colors using the HSL model. This method is especially useful for creating color animations with the animate method.