Sort RGB colors as specified in the docs

This commit is contained in:
ISSOtm
2022-07-10 12:36:10 +02:00
parent d15916b1bd
commit acb33777c6

View File

@@ -97,7 +97,7 @@ void rgb(std::vector<Palette> &palettes) {
for (Palette &pal : palettes) {
std::sort(pal.begin(), pal.end(), [](uint16_t lhs, uint16_t rhs) {
return legacyLuminance(lhs) < legacyLuminance(rhs);
return legacyLuminance(lhs) > legacyLuminance(rhs);
});
}
}