Just recently I’ve learned how to create a triangle with OpenGL that has a white center and colored corners. Since I haven’t found a site explaining how to do this I thought about sharing my solution here.
It’s pretty easy as soon as you know that OpenGL blends the color between vertexes horizontally. Just setting the corners of the triangle to the three fundamental colors (RGB) hoping that the center gets white won’t cut it.