Skip to content

Commit

Permalink
Merge branch 'generate_executable' of https://github.com/pnorman/open…
Browse files Browse the repository at this point in the history
  • Loading branch information
matthijsmelissen committed Sep 22, 2015
2 parents 9b518c3 + 4163fd1 commit e7ad4e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/generate_road_colours.py 100644 → 100755
@@ -1,3 +1,5 @@
#!/usr/bin/env python2

from colormath.color_conversions import convert_color
from colormath.color_objects import LabColor, LCHabColor, sRGBColor
from colormath.color_diff import delta_e_cie2000
Expand Down Expand Up @@ -91,4 +93,4 @@ def rgb_error(self):
print "{name}:{rgb}".format(name = name, rgb = colour.rgb())

for name, colour in shield_colours.iteritems():
print "# {name}: {lch}, error {delta:.1f}".format(name = name, lch = colour.lch(), delta = colour.rgb_error())
print "# {name}: {lch}, error {delta:.1f}".format(name = name, lch = colour.lch(), delta = colour.rgb_error())

0 comments on commit e7ad4e3

Please sign in to comment.