From 4ea9d6466bc1a75372c9e7ad5e2e87d99f8cc6dc Mon Sep 17 00:00:00 2001 From: Gordon Shumway <39967334+oddluck@users.noreply.github.com> Date: Tue, 21 May 2019 06:29:47 -0400 Subject: [PATCH] fix 16 color key index --- ASCII/plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ASCII/plugin.py b/ASCII/plugin.py index 11a627b..70af9e6 100644 --- a/ASCII/plugin.py +++ b/ASCII/plugin.py @@ -384,7 +384,7 @@ class ASCII(callbacks.Plugin): """ pixel = tuple(pixel) if self.colors == 16: - colors = list(self.ircColors.keys()[:15]) + colors = list(self.ircColors.keys())[:15] if pixel not in self.matches: closest_colors = sorted(colors, key=lambda color: self.distance(color, self.rgb2lab(pixel), speed)) closest_color = closest_colors[0]