map color updates
Former-commit-id: 8544751e3259398a4852af3544ccd9abcd454045 Former-commit-id: b9b5bdbfdb7eb4b750949c87bd576fbd92f26afe
This commit is contained in:
parent
f052d584f1
commit
8acc56b21e
|
@ -218,17 +218,17 @@ void drawGrid()
|
|||
|
||||
if(AA) {
|
||||
aacircleRGBA (game.screen, SCREEN_WIDTH>>1, SCREEN_HEIGHT>>1, p1km, 249,38,114, SDL_ALPHA_OPAQUE);
|
||||
aacircleRGBA (game.screen, SCREEN_WIDTH>>1, SCREEN_HEIGHT>>1, p10km, 249,38,114, 196);
|
||||
aacircleRGBA (game.screen, SCREEN_WIDTH>>1, SCREEN_HEIGHT>>1, p100km, 249,38,114, 127);
|
||||
aacircleRGBA (game.screen, SCREEN_WIDTH>>1, SCREEN_HEIGHT>>1, p10km, 187,29,86, SDL_ALPHA_OPAQUE);
|
||||
aacircleRGBA (game.screen, SCREEN_WIDTH>>1, SCREEN_HEIGHT>>1, p100km, 125,19,57, SDL_ALPHA_OPAQUE);
|
||||
} else {
|
||||
circleRGBA (game.screen, SCREEN_WIDTH>>1, SCREEN_HEIGHT>>1, p1km, 249,38,114, SDL_ALPHA_OPAQUE);
|
||||
circleRGBA (game.screen, SCREEN_WIDTH>>1, SCREEN_HEIGHT>>1, p10km, 249,38,114, 196);
|
||||
circleRGBA (game.screen, SCREEN_WIDTH>>1, SCREEN_HEIGHT>>1, p100km, 249,38,114, 127);
|
||||
circleRGBA (game.screen, SCREEN_WIDTH>>1, SCREEN_HEIGHT>>1, p10km, 187,29,86, SDL_ALPHA_OPAQUE);
|
||||
circleRGBA (game.screen, SCREEN_WIDTH>>1, SCREEN_HEIGHT>>1, p100km, 125,19,57, SDL_ALPHA_OPAQUE);
|
||||
}
|
||||
|
||||
drawString("1km", (SCREEN_WIDTH>>1) + p1km + 5, (SCREEN_HEIGHT>>1) + 5, game.font, setColor(64,64,64));
|
||||
drawString("10km", (SCREEN_WIDTH>>1) + p10km + 5, (SCREEN_HEIGHT>>1) + 5, game.font, setColor(64,64,64));
|
||||
drawString("100km", (SCREEN_WIDTH>>1) + p100km + 5, (SCREEN_HEIGHT>>1) + 5, game.font, setColor(64,64,64));
|
||||
drawString("1km", (SCREEN_WIDTH>>1) + p1km + 5, (SCREEN_HEIGHT>>1) + 5, game.font, setColor(249,38,114));
|
||||
drawString("10km", (SCREEN_WIDTH>>1) + p10km + 5, (SCREEN_HEIGHT>>1) + 5, game.font, setColor(187,29,86));
|
||||
drawString("100km", (SCREEN_WIDTH>>1) + p100km + 5, (SCREEN_HEIGHT>>1) + 5, game.font, setColor(125,19,57));
|
||||
}
|
||||
|
||||
void drawGeography() {
|
||||
|
@ -261,9 +261,9 @@ void drawGeography() {
|
|||
// geoColor.g = (uint8_t) (colorDist * 29.0 + (1.0 - colorDist) * 266.0);
|
||||
// geoColor.b = (uint8_t) (colorDist * 240.0 + (1.0 - colorDist) * 16.0);
|
||||
|
||||
geoColor.r = 114;
|
||||
geoColor.g = 129;
|
||||
geoColor.b = 255;
|
||||
geoColor.r = 100;
|
||||
geoColor.g = 0;
|
||||
geoColor.b = 200;
|
||||
|
||||
if(AA) {
|
||||
aalineRGBA(game.screen, x1, y1, x2, y2,geoColor.r,geoColor.g,geoColor.b, SDL_ALPHA_OPAQUE);
|
||||
|
|
|
@ -69,6 +69,7 @@ void cleanup()
|
|||
/* Close SDL_TTF */
|
||||
|
||||
TTF_Quit();
|
||||
|
||||
|
||||
/* Shut down SDL */
|
||||
|
||||
|
|
|
@ -1 +1 @@
|
|||
3dc133421ef7d0474dfec87001d49f3cf4f7d3b4
|
||||
0539f0c770f684b7ef79f185c195a747d2736a87
|
Binary file not shown.
Loading…
Reference in a new issue