Color

About

Color is a data type that denotes a color.

A color is usually called by the name of its most obvious, or dominant, hue.

Colors are discrete values with no clear ordering.

A color is defined by its properties that are implemented in model.

Name

You can name a color and set a value.

Example with css

Operations

Diff

Contrast

Space conversion

Color value conversion between color spaces with Qix

var color = Color('#7743CE').alpha(0.5).lighten(0.5);
console.log(color.hsl().string());  // 'hsla(262, 59%, 81%, 0.5)'
console.log(color.cmyk().round().array());  // [ 16, 25, 0, 8, 0.5 ]
console.log(color.ansi256().object());  // { ansi256: 183, alpha: 0.5 }

Other: See Software

Documentation / Reference


Powered by ComboStrap