1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 14:37:16 +00:00

wrl:: fixed color

This commit is contained in:
Zeno Rogue 2020-04-15 17:07:50 +02:00
parent db916f8c95
commit a866d1fca5

View File

@ -263,7 +263,7 @@ EX always_false in;
string color(color_t col, ld v) {
char buf[100];
snprintf(buf, 100, "%.3f %.3f %.3f", part(col, 0)*v/255, part(col, 1)*v/255, part(col, 2)*v/255);
snprintf(buf, 100, "%.3f %.3f %.3f", part(col, 3)*v/255, part(col, 2)*v/255, part(col, 1)*v/255);
return buf;
}