Hi.
I am trying to draw a triangle.
But the color of the triangle is based on the vertices.
There are 3 vertices in the triangle.
Each vertex has different color. e.g. vtx 1 = green, vtx 2 = red, vtx 3 = blue
Now, how do I fill the triangle with gradient color that comes from the color of these vertices?
(I know you can do something like in opengl, graphics programming using vertex shading or something like that, but I'm not into graphics but just want simple effect)
The idea is actually to form a picture that made up of joined triangles and color the picture as a whole so that it is a smooth image. (Again I know this is something from computer graphics. but I really not into that and have no time to study those graphics algorithm. just simple quick fix.)
Thanks!
Bookmarks