How to correctly convert from rgb565 to rgb888
问题 I'm trying to convert a value from rgb565 to rgb888 but I can't seem to get it right. I've also checked a few existing answers like this one but there are values that don't seem to be properly convert. Here's what I've tried so far: PImage picker; int c; void setup(){ size(285,240); picker = loadImage("hsv.gif"); int c = color(255,255,255); byte[] word = colorToWord(c); int[] rgb = wordToRGB(word); noStroke(); fill(c); rect(0,0,50,100); fill(rgb[0],rgb[1],rgb[2]); rect(50,0,50,100); } void