diff --git a/data/night_colors.json b/data/night_colors.json new file mode 100644 index 0000000000..19f0c1fece --- /dev/null +++ b/data/night_colors.json @@ -0,0 +1,68 @@ +{ + "map": { + "building": { + "RGBA": [ + 0.259, + 0.129, + 0.549, + 1.0 + ] + }, + "building path": { + "RGBA": [ + 0.49, + 0.337, + 0.788, + 1.0 + ] + }, + "grass": { + "RGBA": [ + 0.024, + 0.243, + 0.537, + 1.0 + ] + }, + "map background": { + "RGBA": [ + 0.031, + 0.031, + 0.282, + 1.0 + ] + }, + "unzoomed arterial road": { + "RGBA": [ + 0.333, + 0.145, + 0.482, + 1.0 + ] + }, + "unzoomed highway road": { + "RGBA": [ + 0.867, + 0.122, + 0.5, + 1.0 + ] + }, + "unzoomed residential road": { + "RGBA": [ + 0.302, + 0.318, + 0.675, + 1.0 + ] + }, + "water": { + "RGBA": [ + 0.165, + 0.263, + 0.667, + 1.0 + ] + } + } +} \ No newline at end of file diff --git a/game/src/ui.rs b/game/src/ui.rs index ed2a510c41..b019e418d4 100644 --- a/game/src/ui.rs +++ b/game/src/ui.rs @@ -49,8 +49,14 @@ impl UI { Vec::new() } else { vec![ - ("assets/water_texture.png", Color::rgb(164, 200, 234)), - ("assets/grass_texture.png", Color::rgb(148, 200, 74)), + ( + "assets/water_texture.png", + cs.get_def("water", Color::rgb(164, 200, 234)), + ), + ( + "assets/grass_texture.png", + cs.get_def("grass", Color::rgb(148, 200, 74)), + ), ("assets/pedestrian.png", Color::rgb(51, 178, 178)), ("assets/car.png", Color::CYAN), ]