create_radial_gradient method

create_radial_gradient

Creates a radial gradient given by the coordinates of the two circles represented by the parameters.

Returns

A radial CanvasGradient initialized with the two specified circles.

def create_radial_gradient(self, x0, y0, r0, x1, y1, r1):
    ...
ParameterTypeDescription
x0floatThe x axis of the coordinate of the start circle.
y0floatThe y axis of the coordinate of the start circle
r0floatThe radius of the start circle.
x1floatThe x axis of the coordinate of the end circle.
y1floatThe y axis of the coordinate of the end circle.
r1floatThe radius of the end circle.

See Also