summaryrefslogtreecommitdiffstats
path: root/color.py
diff options
context:
space:
mode:
Diffstat (limited to 'color.py')
-rw-r--r--color.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/color.py b/color.py
index 84ece9d..a38c28b 100644
--- a/color.py
+++ b/color.py
@@ -37,6 +37,9 @@ class Vector(object):
"""Return self * 1 / scalar."""
return self * (1 / scalar)
+ def __eq__(self, other):
+ return self.components == other.components
+
class HSV(Vector):
"""HSV 3-vector."""