Distinguish between line (boder) and route color
authorW. Trevor King <wking@drexel.edu>
Sun, 28 Mar 2010 00:45:23 +0000 (20:45 -0400)
committerW. Trevor King <wking@drexel.edu>
Sun, 28 Mar 2010 00:45:23 +0000 (20:45 -0400)
pyrisk/graphics.py

index 38d58ca5a577a09c794e11d03b6a4446d03d5c55..c407c29547598bd92ebed27124a8c80f0f83cc13 100644 (file)
@@ -344,7 +344,8 @@ class WorldRenderer (object):
             self.template_lib = TEMPLATE_LIBRARY
         self.buf = buf
         self.line_width = line_width
-        self.line_color = 'black'
+        self.line_color = 'grey'
+        self.route_color = 'black'
         self.dpcm = dpcm
     def render(self, world):
         template = self.template_lib.get(world.name)
@@ -383,7 +384,7 @@ class WorldRenderer (object):
                 drawn_rts[id(rt)] = rt
                 lines.extend([
                         '<polyline stroke="%s" stroke-width="%d"'
-                        % (self.line_color, self.line_width),
+                        % (self.route_color, self.line_width),
                         '         points="%s" />'
                         % ' '.join(['%d,%d' % ((region_pos[id(r)]+rt_start+p)
                                            *(1,-1) # svg y value increases down