Cairo.RadialGradient (gb.cairo)

Static Function RadialGradient ( CX0 As Float, CY0 As Float, Radius0 As Float, CX1 As Float, CY1 As Float, Radius1 As Float, Colors As Float[][] ) As CairoPattern

Creates a new radial gradient Cairo pattern between the two circles defined by (CX0, CY0, Radius0) and (CX1, CY1, Radius1), and using color stops defined by the Colors argument.

  • CX0 : x coordinate for the center of the start circle.

  • CY0 : y coordinate for the center of the start circle.

  • Radius0 : radius of the start circle.

  • CX1 : x coordinate for the center of the end circle.

  • CY1 : y coordinate for the center of the end circle.

  • Radius1 : radius of the end circle.

  • Colors : an array of color stops.

Each color stop is defined by an array of Float, having the form [ OffSet, Red, Green, Blue ] or [ OffSet, Red, Green, Blue, Alpha ].
The offset value is the relative position of the color stop between 0.0 and 1.0.

The colors are relative values between 0.0 and 1.0.
The coordinates here are in pattern space. For a new pattern, pattern space is identical to user space, but the relationship between the spaces can be changed by setting the CairoPattern.Matrix property.