Showing 1 changed files with 3 additions and 1 deletions
+3 -1
Nasal/maps/topo.nas
... ...
@@ -28,9 +28,11 @@ var MapTopo = {
28 28
                 var color = 'rgba(255, 127, 40, 1)';
29 29
                 if (diff > 1000 * units.altitude.from_ft)
30 30
                     color = 'rgba(255, 0, 0, 1)';
31
+                elsif (diff < 0 and diff > -300 * units.altitude.from_ft)
32
+                    color = sprintf('rgba(255, 127, 40, %f)', 1 + 0.5 * (diff / (300 * units.altitude.from_ft)) );
31 33
 
32 34
                 setprop(m.path, radial + m.radial_scale * dist, 'fill', color);
33
-                setprop(m.path, radial + m.radial_scale * dist, 'visible', diff > 0);
35
+                setprop(m.path, radial + m.radial_scale * dist, 'visible', diff > -300 * units.altitude.from_ft);
34 36
             }
35 37
             if    (m.radial < m.radial_scale - 1)
36 38
                 m.radial += 1;