The other day, somebody suggested mapping the palette to red, green and blue colors and making colors from those three colors. I wasn’t sure it would work, but I tried anyway (spoiler alert - it didn’t work.)
I wrote this script for creating a pixel, with three subpixels - red, green, and blue. Each subpixel has 6 shades, from 0 (off) to 5 (brightest). This produces 6 ^ 3 combinations or 216 combinations total.
In the following example, you can see a pixel on screen having its subpixels randomised. My idea was to try and draw with these pixels, but it seems as if the pixels can’t be small enough. If I scale up the screen enough to fit 160x120 of these “big pixels” I made (3x3 each) to a resolution of 480x360, the subpixels are still highly visible, defeating the purpose of this experiment.
Pixels work by tricking our eyes into seeing multiple colors blened as one. No matter how high I made the resolution, all three subpixels would still be visible, and it would look like a mess. I even scaled the screen up to resolutions of 1440x1080, but at that point this method would become unusuable due to the lag (and the subpixels were still visible!)
So, in short - while it is an amusing idea, it is unfortunately not doable in makecode.
Tried it with max values (5, 5, 5). Since they are mapped to RGB(255, 255, 255) or in other words #FFFFFF, the entire screen should have been white. Unfortunately, the pattern was very clearly visible at any resolution.
As much as this seems it wouldn’t work, it actually does! You need to paste it all over the screen, which creates the illusion of fluidity. This would make it so it tricks the eyes into blending the entire screen into one color! If you try this, it may work.
This is just red and purple from the default makecode palette but it looks really accurate even at this small resolution
Is there some kind of limited spectrum that could be achieved?
Basically instead of RGB what about using other colours
Fond out why it doesn’t work. You know about color printers? they use 0xff00ff-1 0x00ffff-2 0xffff00-3 0x000000.
if you print a color with 1 at 100%
2 at 75 % and 3 at 50% you can remove 3 and 25% of 2 and
50% of 1 from the color and add 50% of 4 you get the same color.
You can do the same with red green blue white.