color-sort
v0.0.1
Published
A simple lib that sorts colors by perception.
Downloads
265
Maintainers
Readme
Color Sort
A simple lib that sorts colors by perception.
Usage
var colorSort = require('color-sort');
var unsortedColorArray = ['#f00', '#0f0', '#f0f', '#a00', '#a0a', '#00a'];
colorSort(unsortedColorArray) // ['#f00', '#a00', '#0f0', '#00a', '#f0f', '#a0a']