mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-28 03:35:51 +03:00
adjusting map of 23rd ave for first real demo. making unzoomed colors
match between sim and psrc trip viz
This commit is contained in:
parent
c8846b9e74
commit
e87581a86e
@ -1,9 +1,9 @@
|
||||
23rd
|
||||
1
|
||||
-122.33955839886022 47.6650960061724
|
||||
-122.26351332043961 47.66461116083562
|
||||
-122.2818960605346 47.60821587211569
|
||||
-122.33254012391556 47.63026041235239
|
||||
-122.33955839886022 47.6650960061724
|
||||
-122.30964296873428 47.5977517049213
|
||||
-122.29152725418099 47.597290174872846
|
||||
-122.29537891155186 47.652213533970354
|
||||
-122.31036966897095 47.65513966206871
|
||||
-122.30964296873428 47.5977517049213
|
||||
END
|
||||
END
|
||||
|
@ -28,6 +28,7 @@
|
||||
- https://humantransit.org/2019/03/notes-on-simcity-at-30.html
|
||||
- https://mynorthwest.com/category/chokepoints/
|
||||
- https://blogs.uw.edu/ceadvice/2019/05/08/infrastructure-week-2019-welcome-uw-cee-students-and-faculty/
|
||||
- https://escience.washington.edu/dssg/
|
||||
|
||||
## Similar projects
|
||||
|
||||
|
@ -3,8 +3,7 @@ use crate::mission::trips::{clip_trips, Trip};
|
||||
use crate::ui::{ShowEverything, UI};
|
||||
use abstutil::prettyprint_usize;
|
||||
use ezgui::{
|
||||
hotkey, Color, EventCtx, EventLoopMode, GeomBatch, GfxCtx, Key, ModalMenu, ScreenPt, Slider,
|
||||
Text,
|
||||
hotkey, EventCtx, EventLoopMode, GeomBatch, GfxCtx, Key, ModalMenu, ScreenPt, Slider, Text,
|
||||
};
|
||||
use geom::{Circle, Distance, Duration};
|
||||
use map_model::{PathRequest, LANE_THICKNESS};
|
||||
@ -161,12 +160,12 @@ impl TripsVisualizer {
|
||||
|
||||
let pl = trip.route.as_ref().unwrap();
|
||||
let color = match trip.mode {
|
||||
Mode::Drive => Color::RED,
|
||||
Mode::Walk => Color::GREEN,
|
||||
Mode::Bike => Color::BLUE,
|
||||
Mode::Transit => Color::ORANGE,
|
||||
}
|
||||
.alpha(0.5);
|
||||
Mode::Drive => ui.cs.get("unzoomed car"),
|
||||
Mode::Walk => ui.cs.get("unzoomed pedestrian"),
|
||||
Mode::Bike => ui.cs.get("unzoomed bike"),
|
||||
// Little weird, but close enough.
|
||||
Mode::Transit => ui.cs.get("unzoomed bus"),
|
||||
};
|
||||
batch.push(
|
||||
color,
|
||||
Circle::new(
|
||||
|
@ -98,7 +98,7 @@ impl UI {
|
||||
),
|
||||
(
|
||||
self.cs
|
||||
.get_def("unzoomed pedestrian ", Color::CYAN.alpha(0.5)),
|
||||
.get_def("unzoomed pedestrian", Color::ORANGE.alpha(0.5)),
|
||||
peds,
|
||||
),
|
||||
] {
|
||||
|
Loading…
Reference in New Issue
Block a user