mirror of
https://github.com/gbdev/rgbds.git
synced 2026-10-06 04:05:38 +00:00
Sort RGB colors as specified in the docs
This commit is contained in:
1 parent
d15916b1bd
commit
acb33777c6
1 file changed
+1
-1
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user