medialab / iwanthue

Colors for data scientists.
http://tools.medialab.sciences-po.fr/iwanthue/
Other
642 stars 57 forks source link

Sorting a color palette by intensity/saturation in R #54

Closed trichterhb closed 1 month ago

trichterhb commented 1 month ago

Hi,

in

cols3 <- as.character(iwanthue(5, 180, 190, 0, 180, 20, 100, plot=TRUE))

how can i sort the palette by any of the three parameters?

Essentially i want to have the darker colors on top of the lighter ones.

Thanks!

Yomguithereal commented 1 month ago

Sorry but this repository contains the original JavaScript implementation of the iwanthue palette generator. We don't know nor maintain the R library so I am afraid we cannot help you :(