Preliminary end to eoc8

This commit is contained in:
Grant Sanderson
2017-04-14 16:15:39 -07:00
parent f7b4458f62
commit 5300bf24d2
4 changed files with 262 additions and 12 deletions

View File

@ -118,6 +118,9 @@ def rgb_to_color(rgb):
except:
return Color(WHITE)
def invert_color(color):
return rgb_to_color(1.0 - color_to_rgb(color))
def color_to_int_rgb(color):
return (255*color_to_rgb(color)).astype('uint8')