mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-30 15:39:54 +00:00
distcolors used for the P-pattern
This commit is contained in:
parent
fe52cb6ea9
commit
c73c7a6855
@ -1636,7 +1636,7 @@ EX namespace patterns {
|
|||||||
}
|
}
|
||||||
case 'P': {
|
case 'P': {
|
||||||
int d = celldistance(c, currentmap->gamestart()->move(0));
|
int d = celldistance(c, currentmap->gamestart()->move(0));
|
||||||
color_t res = gradient(0, canvasback, 0, min(1.8/(1+d), 1.), 1);
|
color_t res = distcolors[d];
|
||||||
if(d > 3) res |= 0x1000000;
|
if(d > 3) res |= 0x1000000;
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user