Color - Software / Library

1 - About

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

2 - List

2.1 - d3-color

How to work with color in d3: working with color

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

2.3 - Random Color


'#' + Math.floor(Math.random()*16777215).toString(16);


<script src="https://cdnjs.cloudflare.com/ajax/libs/randomcolor/0.6.1/randomColor.min.js" integrity="sha512-vPeZ7JCboHcfpqSx5ZD+/jpEhS4JpXxfz9orSvAPPj0EKUVShU2tgy7XkU+oujBJKnWmu4hU7r9MMQNWPfXsYw==" crossorigin="anonymous"></script>


.circle {
    width: 3em;
    height: 3em;
    border-radius: 50%;
    display: block;
    text-indent: -1000px;
    float: left;
    overflow: hidden;
    margin: 0 1em 1em 0;
}


randomColor({hue: 'pink', count: 18}).forEach(color => {
   document.body.insertAdjacentHTML(
       'afterend',
       '<span class="circle" style="background: '+color+';">'+color+'</span>'
   );
});


Data Science
Data Analysis
Statistics
Data Science
Linear Algebra Mathematics
Trigonometry

Powered by ComboStrap