Color - Software / Library

About

This page lists software / application and library around the manipulation and creation of color.

List

d3-color

How to work with color in d3: working with color

Color 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 }

Random Color

'#' + Math.floor(Math.random()*16777215).toString(16);
randomColor({hue: 'pink', count: 18}).forEach(color => {
   document.body.insertAdjacentHTML(
       'afterend',
       '<span class="circle" style="background: '+color+';">'+color+'</span>'
   );
});

Powered by ComboStrap