summaryrefslogtreecommitdiffstats
path: root/color.py
diff options
context:
space:
mode:
Diffstat (limited to 'color.py')
-rw-r--r--color.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/color.py b/color.py
index c65252b..8f7f72c 100644
--- a/color.py
+++ b/color.py
@@ -50,6 +50,12 @@ class Vector(object):
new_y = self.x * sintheta + self.y * costheta
return self.__class__(new_x, new_y)
+ def __unicode__(self):
+ return '<{}, {}, {}>'.format(self.x, self.y, self.z)
+
+ def __str__(self):
+ return unicode(self)
+
@property
def components(self):