Метка: colors
benhowdle89/grade – библиотека JS создает градиенты, сгенерированные из 2 доминирующих цветов

<script src="path/to/grade.js"></script>
<script type="text/javascript">
window.addEventListener('load', function(){
/*
A NodeList of all your image containers (Or a single Node).
The library will locate an <img /> within each
container to create the gradient from.
*/
Grade(document.querySelectorAll('.gradient-wrap'))
})
</script>
vinaypillai / ac-colors – конвертер цвет RGB, HSL, HEX, XYZ, LAB, LCHab, LUV, и LCHuv
// Node.js users will need to import the module
const Color = require("ac-colors");
let black = new Color();
console.log(black.hex); // #000000