Browse Source

another MapperColorAdjust change

Thomas Buck 11 months ago
parent
commit
e14f3c2139
1 changed files with 4 additions and 4 deletions
  1. 4
    4
      mapper.py

+ 4
- 4
mapper.py View File

48
 
48
 
49
 # For some reason the red and green LEDs on older Pimoroni panels
49
 # For some reason the red and green LEDs on older Pimoroni panels
50
 # are far brighter than on newer panels.
50
 # are far brighter than on newer panels.
51
-# Adjust this by multiplying rg channels with 0.75, depending
52
-# on hard-corded coordinate ranges.
51
+# Adjust this by multiplying rg channels with 0.75 and b channel
52
+# with 0.85, depending on hard-corded coordinate ranges.
53
 class MapperColorAdjust(MapperNull):
53
 class MapperColorAdjust(MapperNull):
54
     def set_pixel(self, x, y, color):
54
     def set_pixel(self, x, y, color):
55
         # second panel from the left, with 32 <= x,
55
         # second panel from the left, with 32 <= x,
56
         # is "old" type with brighter LEDs.
56
         # is "old" type with brighter LEDs.
57
         # rest of panels to the left are less bright.
57
         # rest of panels to the left are less bright.
58
-        # so adjust brightness of other panel rg channels down.
58
+        # so adjust brightness of other panel channels down.
59
         if x >= self.gui.panelW:
59
         if x >= self.gui.panelW:
60
-            color = (int(color[0] * 0.75), int(color[1] * 0.75), color[2])
60
+            color = (int(color[0] * 0.75), int(color[1] * 0.75), color[2] * 0.85)
61
 
61
 
62
         self.gui.set_pixel(x, y, color)
62
         self.gui.set_pixel(x, y, color)
63
 
63
 

Loading…
Cancel
Save