mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-05-09 10:44:07 +00:00
smoother coloring in Crystal
This commit is contained in:
parent
b2fa6703f1
commit
f4f7b195ff
@ -502,7 +502,7 @@ EX color_t colorize(cell *c) {
|
|||||||
color_t res;
|
color_t res;
|
||||||
res = 0;
|
res = 0;
|
||||||
for(int i=0; i<3; i++)
|
for(int i=0; i<3; i++)
|
||||||
res |= ((int)(((i == 2 && S7 == 5) ? (128 + co[i] * 50) : (255&int(128 + co[i] * 50))))) << (8*i);
|
res |= ((int)(((i == 2 && S7 == 5) ? (128 + co[i] * 50) : (255&int(128 + co[i] * 25))))) << (8*i);
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user