1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-12 07:16:01 +00:00

Remove unused WIP code.

This commit is contained in:
Jacob Mandelson
2025-06-22 13:25:41 -07:00
parent e88d57787c
commit 1511b6c9e6
2 changed files with 2 additions and 28 deletions

View File

@@ -119,23 +119,11 @@ void eclectic_red(color_t& col) {
if (!higher_contrast) { if (!higher_contrast) {
part(col, 0) = part(col, 2) * 3 / 4; part(col, 0) = part(col, 2) * 3 / 4;
} else { } else {
auto d = (part(col, 0) + part(col, 1) + part(col, 2)); auto v = part(col, 0) + part(col, 1) + part(col, 2);
auto t = part(col, 0); auto t = part(col, 0);
part(col, 0) = part(col, 1); part(col, 0) = part(col, 1);
part(col, 1) = part(col, 2); part(col, 1) = part(col, 2);
part(col, 2) = t + d/3; part(col, 2) = t + v/3;
//swap(part(col, 0), part(col, 1));
/* auto h = part(col, 0) / 2;
part(col, 0) -= h;
part(col, 1) += h;
part(col, 2) += h / 2; */
/* part(col, 0) += part(col, 0) / 4;
part(col, 1) += part(col, 1) + 16;
part(col, 2) += part(col, 2) / 2 + 8; */
/* part(col, 0) += d;
part(col, 1) += 3*d;
part(col, 2) += 2*d; */
} }
} }

View File

@@ -55,20 +55,6 @@ EX int darkenedby(int c, int lev) {
return c; return c;
} }
EX color_t lightena3(color_t c, int lev, int a) {
return (lightenedby(c, lev) << 8) + a;
}
EX color_t lightena(color_t c, int lev, int a) {
return lightena3(c, lev, GDIM == 3 ? 255 : a);
}
EX int lightenedby(int c, int lev) {
for(int i=0; i<lev; i++)
c = ((c | 0x010101) << 1);
return c;
}
bool fading = false; bool fading = false;
ld fadeout = 1; ld fadeout = 1;