BlocklyProp
BlocklyProp copied to clipboard
Color chooser
I'm curious if we can we enhance the color chooser?
The color chooser looks great, but there's some problems I've found when working with RGB LEDs. Those colors work great on-screen (WYSIWYG), but on the RGB LEDs, not so much.
For example, the Red row is fine. The choices from the right (dark) cell to the third-leftmost cell (highlighted in this picture) give a nice even distribution of five color values for the red channel:
- Red: (51,0,0), (102,0,0), (153,0,0), (204,0,0), and (255,0,0)
However, for green and blue rows, there's no option for pure-color saturation from 51 to 255; instead, they end up mixing colors along the way.
- Green: (0,51,0), (0,102,0), (0,153,0), (51,204,0), and (51,255,51)
- Blue: (0,51,51), (51,102,102), (51,153,153), (0,204,204), and (102,204,204) To get a pure saturated green or blue, you have to use another block the enter the value numerically.
I've also noticed that the primary colors are not spaced evenly... Red to Green is 4 rows apart and Green to Blue is 0 rows apart. Is that intentional? Maybe we're trying to provide more pastels?
I wrote a little color grid program years ago and just used it to fashion this similar display (although with a few more hues than what we may want) for comparison. The color rows traverse the primary colors from dark (right) through bright saturation (middle) and then mix toward white (left). The numerical values can pretty easily be captured if this helps in any way.
Of course, not every color combination can be effectively attained on various RGB LEDs, so I don't expect that various off-primary hues will generate a recognizable color from screen to LED.