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:
parent
51ea62977f
commit
84d48789c7
@ -2985,6 +2985,9 @@ EX int read_color_args() {
|
|||||||
else if(argis("-fillmodel")) {
|
else if(argis("-fillmodel")) {
|
||||||
PHASEFROM(2); shift(); modelcolor = argcolor(32);
|
PHASEFROM(2); shift(); modelcolor = argcolor(32);
|
||||||
}
|
}
|
||||||
|
else if(argis("-apeirocolor")) {
|
||||||
|
PHASEFROM(2); shift(); patterns::apeirogonal_color = argcolor(32);
|
||||||
|
}
|
||||||
else if(argis("-ring")) {
|
else if(argis("-ring")) {
|
||||||
PHASEFROM(2); shift(); ringcolor = argcolor(32);
|
PHASEFROM(2); shift(); ringcolor = argcolor(32);
|
||||||
}
|
}
|
||||||
|
@ -1752,7 +1752,9 @@ EX namespace patterns {
|
|||||||
}
|
}
|
||||||
|
|
||||||
EX hookset<int(cell*)> hooks_generate_canvas;
|
EX hookset<int(cell*)> hooks_generate_canvas;
|
||||||
|
|
||||||
|
EX color_t apeirogonal_color = 0xFFFFFFFF;
|
||||||
|
|
||||||
EX int jhole = 0;
|
EX int jhole = 0;
|
||||||
EX int jblock = 0;
|
EX int jblock = 0;
|
||||||
EX int rwalls = 50;
|
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)];
|
if(arb::in()) return colortables['A'][shvid(c) + c->master->emeraldval * isize(arb::current.shapes)];
|
||||||
return colortables['A'][shvid(c)];
|
return colortables['A'][shvid(c)];
|
||||||
case 'B':
|
case 'B':
|
||||||
|
if(arb::is_apeirogonal(c)) return apeirogonal_color;
|
||||||
return colortables['B'][c->type & 15];
|
return colortables['B'][c->type & 15];
|
||||||
#if CAP_FIELD
|
#if CAP_FIELD
|
||||||
case 'C': {
|
case 'C': {
|
||||||
|
Loading…
Reference in New Issue
Block a user