E
E
Eugene Ordinary2018-06-24 02:34:10
Design
Eugene Ordinary, 2018-06-24 02:34:10

How to sort RGB colors?

How can I sort the RGB colors in the palette so that the set looks ordered?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Moskus, 2018-06-24
@Moskus

Например, можно конвертировать их в цветовое пространство HSL, а далее, сортировать по оттенку (Hue), внутри него - по насыщенности (Saturation) и яркости (Lightness).
Сортировка по значениям R,G,B даст весьма странный результат, как вы, вероятно, уже заметили.

P
profesor08, 2018-06-24
@profesor08

First red, then green, then blue. If you don't like it, change the order.
And in general it is googled in a couple of seconds https://www.alanzucconi.com/2015/09/30/colour-sorting/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question