.vssettings file (Visual Studio Settings) Color Format

These appear, at a glance (and with some knowledge of how MS likes to handle colors) to be ARGB or XRGB DWORDs in hex form. Depending on what you're doing, though, they could be A/XBGR.

Most likely, the first two characters are alpha, then red, green, and blue. That's a pretty standard way of laying out colors, since it neatly fits in a memory register and matches texture data for a few formats.

However, some places like to reverse that, which matches other texture formats. The A/X remains at the start, then blue, green, and red.

This should be easy to test for, by providing 0x00FF0000. If blue, the BGR, if red, RGB.

It is possible that they might be using the first channel/byte as something other than alpha. Packing data into the alpha channel of a 3-channel texture is not uncommon. However, only one of the colors is 0x02..., the rest are all 0x00..., so I wouldn't this is going on (there's also a 3.5 byte color in there, so perhaps typos).

You don't need to do any conversion with these, as they are already hex (actual code hex, not the #... web stuff). To "convert" a web hex triplet, just remove the # and prepend 0x00 and you should be good. All the other characters remain the same (case shouldn't matter, though some people like uppercase as procedure).


Just as an FYI the vsettings file uses BGR not RGB