Browse Source

fixed colors and coordinates

feature/balanceutils
Fr3deric 8 years ago committed by Frederic
parent
commit
94aff3dd0c
  1. 6
      blup/output.py

6
blup/output.py

@ -364,9 +364,9 @@ class BlinkenbuntHDOutput(Output): @@ -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()
#

Loading…
Cancel
Save