Paint.LinearGradient (gb.web.gui)

Static Function LinearGradient ( X1 As Float, Y1 As Float, X2 As Float, Y2 As Float, Colors As Variant[], Positions As Float[] ) As PaintBrush

Create a new linear gradient brush along the line defined by (X1, Y1) and (X2, Y2), and using color stops defined by the Colors and Positions arguments.

  • X1 : x coordinate of the start point.

  • Y1 : y coordinate of the start point.

  • X2 : x coordinate of the end point.

  • Y2 : y coordinate of the end point.

  • Colors : an array of colors.

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