summaryrefslogtreecommitdiff
path: root/colour.py
diff options
context:
space:
mode:
authorPeter Ward <peteraward@gmail.com>2012-07-19 20:08:23 +1000
committerPeter Ward <peteraward@gmail.com>2012-07-19 20:08:23 +1000
commit93ba106c94b7a2d2109842432fed3dbe920c3558 (patch)
tree921f139e0db186f676cba9c3917489479c51ab88 /colour.py
parent7fb2789ea7b25a4825ff4b99a832758d3533ded5 (diff)
Move everything into a package.
Diffstat (limited to 'colour.py')
-rw-r--r--colour.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/colour.py b/colour.py
deleted file mode 100644
index fa24f2b..0000000
--- a/colour.py
+++ /dev/null
@@ -1,8 +0,0 @@
-import hashlib
-
-def hash_colour(data):
- data = map(ord, hashlib.md5(data).digest())
- colour = data[::3], data[1::3], data[2::3]
- colour = map(sum, colour)
- return (colour[0] % 255, colour[1] % 255, colour[2] % 255)
-