1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

apeirogonal color fixup

This commit is contained in:
Zeno Rogue 2022-04-28 08:24:13 +02:00
parent 51ea62977f
commit 84d48789c7
2 changed files with 7 additions and 1 deletions

View File

@ -2985,6 +2985,9 @@ EX int read_color_args() {
else if(argis("-fillmodel")) {
PHASEFROM(2); shift(); modelcolor = argcolor(32);
}
else if(argis("-apeirocolor")) {
PHASEFROM(2); shift(); patterns::apeirogonal_color = argcolor(32);
}
else if(argis("-ring")) {
PHASEFROM(2); shift(); ringcolor = argcolor(32);
}

View File

@ -1753,6 +1753,8 @@ EX namespace patterns {
EX hookset<int(cell*)> hooks_generate_canvas;
EX color_t apeirogonal_color = 0xFFFFFFFF;
EX int jhole = 0;
EX int jblock = 0;
EX int rwalls = 50;
@ -1787,6 +1789,7 @@ EX namespace patterns {
if(arb::in()) return colortables['A'][shvid(c) + c->master->emeraldval * isize(arb::current.shapes)];
return colortables['A'][shvid(c)];
case 'B':
if(arb::is_apeirogonal(c)) return apeirogonal_color;
return colortables['B'][c->type & 15];
#if CAP_FIELD
case 'C': {