From 94aff3dd0c3140d2592cef82bacbb51ec25231e3 Mon Sep 17 00:00:00 2001 From: Frederic Date: Wed, 21 Dec 2016 21:49:25 +0100 Subject: [PATCH] fixed colors and coordinates --- blup/output.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/blup/output.py b/blup/output.py index 1d183c4..7b2ca05 100644 --- a/blup/output.py +++ b/blup/output.py @@ -364,9 +364,9 @@ class BlinkenbuntHDOutput(Output): lednum = x*self.h + y else: lednum = x*self.h - y + 15 - pix = frame.getPixel(x, y) - print(pix) - self.strip.setPixelColor(lednum, self._color_cls(*pix)) + pix = frame.getPixel(self.w - x - 1, self.h - y - 1) + r, g, b = pix + self.strip.setPixelColor(lednum, self._color_cls(g, b r)) self.strip.show() #