Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/javierbyte/color-sort
- Owner: javierbyte
- Created: 2016-03-23T05:07:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-03-23T05:15:54.000Z (over 8 years ago)
- Last Synced: 2024-10-13T14:14:37.375Z (30 days ago)
- Language: JavaScript
- Size: 1000 Bytes
- Stars: 9
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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']
```