cloudhead / rx

👾 Modern and minimalist pixel editor
https://discord.gg/xHggPjfsS9
GNU General Public License v3.0
3.11k stars 109 forks source link

Quick experiment : sort palette by hue #96

Closed MonsieurLanza closed 3 years ago

MonsieurLanza commented 4 years ago

This is just an experiment, un-optimized attempt to sort palette by hue rather than luminosity.

Below is the result of a p/sort command on the default palette : image

cloudhead commented 3 years ago

I'd really like to have an effective way of sorting palettes in a pleasing way.. I'm not sure how complex it would be to have an algorithm that can do that (and perhaps permute between various orderings). I think sorting by hue alone doesn't work, and neither does sorting by luminance. They have to somehow be combined for best results.. I'm going to close this because it's been inactive for a while, but curious if you come up with more sophisticated algorithms.