ldraw.py

changeset 8
303c51137cb2
parent 7
0ab0d61ccee8
child 9
fea8e9ae6f29
--- a/ldraw.py	Thu Dec 21 10:46:41 2017 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,11 +0,0 @@
-class Colour:
-    def __init__(self, index):
-        self.index = int(index, 0)
-    def __str__(self):
-        if self.is_direct_colour():
-            # write direct colours with hex codes
-            return '0x%07X' % self.index
-        else:
-            return str(self.index)
-    def is_direct_colour(self):
-        return self.index >= 0x2000000

mercurial