summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rw-r--r--Tools/pynche/ColorDB.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Tools/pynche/ColorDB.py b/Tools/pynche/ColorDB.py
index a4c8342..5191d2b 100644
--- a/Tools/pynche/ColorDB.py
+++ b/Tools/pynche/ColorDB.py
@@ -85,11 +85,10 @@ class ColorDB:
except KeyError:
raise BadColor(name)
- def nearest(self, rgbtuple):
+ def nearest(self, red, green, blue):
# TBD: use Voronoi diagrams, Delaunay triangulation, or octree for
# speeding up the locating of nearest point. Exhaustive search is
# inefficient, but may be fast enough.
- red, green, blue = rgbtuple
nearest = -1
nearest_name = ''
for name, aliases in self.__byrgb.values():