ICanvasRenderingContext2D.CreateLinearGradient

ICanvasRenderingContext2D.CreateLinearGradient method

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

public ICanvasGradient CreateLinearGradient(double x0, double y0, double x1, double y1)
ParameterTypeDescription
x0DoubleThe x axis of the coordinate of the start point.
y0DoubleThe y axis of the coordinate of the start point.
x1DoubleThe x axis of the coordinate of the end point.
y1DoubleThe y axis of the coordinate of the end point.

Return Value

The linear CanvasGradient.

See Also