How to use GradientBrush?


#1

I want to create a gradient that goes from left to right, with the first color provided on the left and the 2nd on the rightmost of the gradient.

The documentation does not say what the 2 floating point values are for (each color has them as a parameter in the gradient brush), but the default behavior is for the gradient to go from first color at top, to 2nd color at bottom.

Any suggestions on how to modify this?


#2

Nevermind, I figured this out by reading the header file, for some reason the detail was not in the documentation.


#3

oops - I’ll update that so it appears in the docs.


#4