chiark / gitweb /
Changes to the layer coloring, better visible gcode path now
authordaid <daid303@gmail.com>
Fri, 16 Mar 2012 13:52:47 +0000 (14:52 +0100)
committerdaid <daid303@gmail.com>
Fri, 16 Mar 2012 13:52:47 +0000 (14:52 +0100)
SkeinPyPy_NewUI/newui/preview3d.py

index b7afb4f4777b63aca82ca6ba98a72b23ffc3c9ff..041c615cb79733f1b0f7c3e9c503a6395a4e280f 100644 (file)
@@ -325,9 +325,9 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
                                        c = 1.0\r
                                        if path['layerNr'] != self.parent.layerSpin.GetValue():\r
                                                if path['layerNr'] < self.parent.layerSpin.GetValue():\r
-                                                       c = 0.5 - (self.parent.layerSpin.GetValue() - path['layerNr']) * 0.1\r
-                                                       if c < 0.1:\r
-                                                               c = 0.1\r
+                                                       c = 0.9 - (self.parent.layerSpin.GetValue() - path['layerNr']) * 0.1\r
+                                                       if c < 0.4:\r
+                                                               c = 0.4\r
                                                else:\r
                                                        break\r
                                        if path['type'] == 'move':\r
@@ -341,7 +341,7 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
                                                        glColor3f(c,0,0)\r
                                        if path['type'] == 'retract':\r
                                                glColor3f(0,c,c)\r
-                                       if c > 0.1 and path['type'] == 'extrude':\r
+                                       if c > 0.4 and path['type'] == 'extrude':\r
                                                if path['pathType'] == 'FILL':\r
                                                        lineWidth = self.fillLineWidth / 2\r
                                                else:\r