mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-25 20:12:50 +00:00
wrl:: fixed color
This commit is contained in:
parent
db916f8c95
commit
a866d1fca5
@ -263,7 +263,7 @@ EX always_false in;
|
|||||||
|
|
||||||
string color(color_t col, ld v) {
|
string color(color_t col, ld v) {
|
||||||
char buf[100];
|
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;
|
return buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user