Browse Source

fixed colors and coordinates

master
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):
lednum = x*self.h + y lednum = x*self.h + y
else: else:
lednum = x*self.h - y + 15 lednum = x*self.h - y + 15
pix = frame.getPixel(x, y) pix = frame.getPixel(self.w - x - 1, self.h - y - 1)
print(pix) r, g, b = pix
self.strip.setPixelColor(lednum, self._color_cls(*pix)) self.strip.setPixelColor(lednum, self._color_cls(g, b r))
self.strip.show() self.strip.show()
# #

Loading…
Cancel
Save