Well, you matched the concept, just that your white and gray aren't actually white or gray so this may cause some inaccuracies. White is 255 for red, green, and blue. Gray is 128 for each and black is 0 of each. You got black correct, however. Then again, I don't think A5 has support for 32-bit color. I'm unfamiliar with A5, so I don't know what it's features are and limitations are compared to A6 (I have A6 Commercial, you supposedly have A5 Extra - it's tricky to tell). However, I should have enough information to get results with. It may take a little while as I have two unknowns - the color and the degree of transparency. The degree of transparency needs to be figured out first, the tricky part, then finding the actual color, which is the easy part.