There is a simple algorithm to convert integer values to RGB value of three numbers between 0-255 at integer to rgb. I got the integer number from Android Colors. I even ran:
System.out.println(Color.decode("-16711681"));
and the answer was java.awt.Color[r=0,g=255,b=0], which is expected.
I literally have an issue on step one, -16711681 % 256 is 255, and I expect 0 for the red color. In Java I coded:
System.out.println(-16711681 % 256);
and I get -1, which means I have to add 256 and my red color is 255. Can someone help me?