Unsolved How to create a gradient between 3 points
-
Hello,
I am trying to draw filled a triangle with a QPainter where the filled color will be an interpolation between colors assigned to each of the 3 points of the triangle.
How to do this in Qt? I found linear gradients, but no tri color gradients.
I am looking for something like this:
http://cs.wellesley.edu/~cs307/readings/ColorInterpolation.pngThanks,
Cyrille -
@Cyrille-de-Brebisson said in How to create a gradient between 3 points:
How to do this in Qt? I found linear gradients, but no tri color gradients.
As far as I know you'd need to calculate it yourself.