diff options
author | Peter Ward <peteraward@gmail.com> | 2012-07-19 20:08:23 +1000 |
---|---|---|
committer | Peter Ward <peteraward@gmail.com> | 2012-07-19 20:08:23 +1000 |
commit | 93ba106c94b7a2d2109842432fed3dbe920c3558 (patch) | |
tree | 921f139e0db186f676cba9c3917489479c51ab88 /colour.py | |
parent | 7fb2789ea7b25a4825ff4b99a832758d3533ded5 (diff) |
Move everything into a package.
Diffstat (limited to 'colour.py')
-rw-r--r-- | colour.py | 8 |
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) - |