Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/javierbyte/color-sort

A simple lib for sorting colors by perception.
https://github.com/javierbyte/color-sort

Last synced: 2 days ago
JSON representation

A simple lib for sorting colors by perception.

Awesome Lists containing this project

README

        

# Color Sort
A simple lib that sorts colors by perception.

# Usage
```js
var colorSort = require('color-sort');
var unsortedColorArray = ['#f00', '#0f0', '#f0f', '#a00', '#a0a', '#00a'];

colorSort(unsortedColorArray) // ['#f00', '#a00', '#0f0', '#00a', '#f0f', '#a0a']
```