From fea99295c9ca99d3f3abd41b9bfaac91f4bda6dd Mon Sep 17 00:00:00 2001 From: Raymond Hogenson Date: Tue, 27 Sep 2016 22:58:31 -0400 Subject: Split files and finish render code Although it is unlikely that this code will actually run, it is split up rather nicely such that it should be maintainable into the future. Right now only one fish is supported, and it moves at some fixed rate across the bridge. This is fine for a demo, but the rendering process will need to be changed significantly before the end. --- color.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'color.py') diff --git a/color.py b/color.py index 71fbaaf..2b51701 100644 --- a/color.py +++ b/color.py @@ -1,5 +1,5 @@ """Color vector library containing HSV and RGB.""" -from __future__ import division +from __future__ import division, unicode_literals import colorsys import math @@ -82,3 +82,12 @@ def RGB(Vector): def b(self): """Return blue value.""" return self.components[2] + +red = RGB(1, 0, 0) +green = RGB(0, 1, 0) +blue = RGB(0, 0, 1) +cyan = RGB(0, 1, 1) +magenta = RGB(1, 0, 1) +yellow = RGB(1, 1, 0) +white = RGB(1, 1, 1) +black = RGB(0, 0, 0) -- cgit v1.3.1