A simple lib for sorting colors by perception.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
index.js
package.json

README.md

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']