mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-11-24 09:24:26 +03:00
UX feedback: for the contour layer, less opacity and less bold contour lines
This commit is contained in:
parent
f3a216e935
commit
cbc5820d4f
@ -294,10 +294,10 @@ pub fn make_elevation_contours(
|
||||
for p in polygons {
|
||||
if let Ok(p) = Polygon::from_geojson(&p) {
|
||||
let poly = p.scale(resolution_m);
|
||||
if let Ok(x) = poly.to_outline(Distance::meters(10.0)) {
|
||||
batch.push(Color::BLACK, x);
|
||||
if let Ok(x) = poly.to_outline(Distance::meters(5.0)) {
|
||||
batch.push(Color::BLACK.alpha(0.5), x);
|
||||
}
|
||||
batch.push(color.alpha(0.2), poly);
|
||||
batch.push(color.alpha(0.1), poly);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user