Today I wrote a class that takes an image an spits it out as an array of quads with each quad matching the r,g,b,transparency and location date of each pixel of the original. (I’m rather proud of myself to be honest).
But I am stumped at something that I can’t figure out.
I have the original rgb values (0-255) but need to convert them to a double that lwjgl can read. With the color4d its 0-1.
Is anyone aware of what the conversion is?