UNPKG

sort-colors-js

Version:
26 lines (17 loc) 426 B
# sort-colors-js Sort an array of hex colors by HUE ### Install npm install sort-colors-js ### Usage ```js import sortColorsByHue from 'sort-colors-js' const arrayColorsSorted = sortColorsByHue([ '#e6194b', '#3cb44b', '#ffe119', '#4363d8', '#f58231', '#911eb4' ]) ``` ![colors sorted](https://i.stack.imgur.com/uhDfW.jpg)