Paint.RadialGradient (gb.web.gui)

Static Function RadialGradient ( X1 As Float, Y1 As Float, R1 As Float, X2 As Float, Y2 As Float, R2 As Float, Colours As Variant[], Positions As Float[] ) As PaintBrush

Create a new radial gradient paint brush.

It will interpolate colors between a start circle defined by ( X1, Y1, R1 ) and an end circle defined by ( X2 , Y2 , R2 ), and using color stops defined by the Colors and Positions arguments.

  • X1 : the x-axis coordinate of the start circle.

  • Y1 : the y-axis coordinate of the start circle.

  • R1 : the radius of the start circle. Must be non-negative and finite.

  • X2 : the x-axis coordinate of the end circle.

  • Y2 : the y-axis coordinate of the end circle.

  • R2 : the radius of the end circle. Must be non-negative and finite.

  • Colors : an array of color stops.

  • Positions : the position of each color, 0 being the gradient start, and 1 the gradient end.