circular color gradient?

I need to draw a circle where the perimeter is one color and the center is another color, and with a gradual transition from the perimeter to the center.

Is it possible to draw that with opengl?


Sure. Just use a triangle fan to make the circle with all the vertex colors on the outside being the outside color and the interior vertex being the inside color. If you have smooth shading turned on, it will give you a nice gradient between the vertices.