mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-23 21:07:17 +00:00
notknot:: fog now uses rainbow colors
This commit is contained in:
parent
f15ab95ca1
commit
d2235e29a0
@ -1098,10 +1098,32 @@ struct hrmap_notknot : hrmap {
|
||||
}
|
||||
};
|
||||
|
||||
int qty = 0;
|
||||
for(int i=0; i<isize(all); i++)
|
||||
if(all[i]->result)
|
||||
if(all[i]->where->c7->wall == waFloorA)
|
||||
color(all[i]->result->c7, cols[(id++) % isize(cols)], 0);
|
||||
if(all[i]->where->c7->wall == waFloorA)
|
||||
qty++;
|
||||
|
||||
for(int i=0; i<isize(all); i++)
|
||||
if(all[i]->result)
|
||||
if(all[i]->where->c7->wall == waFloorA) {
|
||||
cell *c = all[i]->result->c7;
|
||||
if(dist.count(c)) continue;
|
||||
int idd = (id++) % isize(cols);
|
||||
color_t col = rainbow_color(1, idd * 1. / qty);
|
||||
col <<= 8; col |= 1;
|
||||
|
||||
color(c, cols[idd], 0);
|
||||
/*for(int i=0; i<8; i++)
|
||||
c = c->move(4);
|
||||
color(c, cols[idd], 0);
|
||||
for(int i=0; i<8; i++)
|
||||
c = c->move(5);
|
||||
color(c, cols[idd], 0);
|
||||
for(int i=0; i<8; i++)
|
||||
c = c->move(4);
|
||||
color(c, cols[idd], 0); */
|
||||
}
|
||||
|
||||
for(int i=0; i<isize(lst); i++) {
|
||||
auto c = lst[i];
|
||||
|
Loading…
Reference in New Issue
Block a user