1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-16 11:08:05 +00:00

brownian:: improved colors

This commit is contained in:
Zeno Rogue
2018-12-25 12:49:54 +01:00
parent fd3f762a30
commit 506af06c8f
2 changed files with 14 additions and 3 deletions

View File

@@ -115,6 +115,14 @@ namespace brownian {
}
}
}
color_t get_color(int y) {
return
y < level ? gradient(0x603000, 0x804000, 1, y, level-1) :
y < 2 * level ? 0xA05000 :
y < 3 * level ? 0xC09050 :
0xE0D0A0;
}
}