I use vertex-colors in my 2D elements of my program.
I thought I understood the what the color is, but it seems I don't. I thought the color consists of RGB values: RRGGBB. So that 0000ff is blue, 00ff00 is green and ff0000 is red. These colors seem to work, but when I combine them something goes wrong. ffffff which should be white is something like this and ffff00 which should be bright yellow is actually like this.
What's wrong with it?