create_linear_gradient method

create_linear_gradient

Creates a linear gradient along the line given by the coordinates represented by the parameters.

Returns

The linear CanvasGradient.

def create_linear_gradient(self, x0, y0, x1, y1):
    ...
ParameterTypeDescription
x0floatThe x axis of the coordinate of the start point.
y0floatThe y axis of the coordinate of the start point.
x1floatThe x axis of the coordinate of the end point.
y1floatThe y axis of the coordinate of the end point.

See Also