Tinycolor's monochromatic palette
const _ = require("lodash")
const tinycolor = require("tinycolor2");
const color = 'green';
const number = 15
const offset = Math.round(number / 2);
_.map(tinycolor(color).monochromatic(number), (color) => color.toHexString());
_(tinycolor(color).monochromatic(number + offset)).sortBy((color) => color.toHsv().v).map((color) => color.toHexString()).slice(offset).value()
no comments