--- a/ldraw.py Mon Dec 11 00:46:35 2017 +0200 +++ b/ldraw.py Tue Dec 12 11:50:18 2017 +0200 @@ -1,11 +1,11 @@ -class Color: +class Colour: def __init__(self, index): self.index = int(index, 0) def __str__(self): - if self.is_direct_color(): - # write direct colors with hex codes + if self.is_direct_colour(): + # write direct colours with hex codes return '0x%07X' % self.index else: return str(self.index) - def is_direct_color(self): + def is_direct_colour(self): return self.index >= 0x2000000