Paint.RadialGradient (gb.qt4)
Static Function RadialGradient ( CX As Float, CY As Float, Radius As Float, FX As Float, FY As Float, Colors As Integer[], Positions As Float[] [ , Extend As Integer ] ) As PaintBrush
Creates a new radial gradient paint brush that interpolates colors between a focal point (
FX ,
FY ) and end points on a circle defined by (
CX0 ,
CY0 ,
Radius0 ), and using color stops defined by the
Colors and
Positions arguments.
-
CX : x coordinate for the center of the circle.
-
CY : y coordinate for the center of the circle.
-
Radius : radius of the circle.
-
FX : x coordinate for the gradient focal point.
-
FY : y coordinate for the gradient focal point.
-
Colors : an array of color stops.
-
Positions : the position of each color, 0 being the gradient start, and 1 the gradient end.
The coordinates here are in brush space. For a new brush, brush space is identical to user space, but the relationship between the spaces can be changed by setting the
PaintBrush.Matrix property.