The createLinearGradient(x0, y0, x1, y1) method takes four arguments that represent the start point (x0, y0) and end point (x1, y1) of the gradient. If any of the arguments to createLinearGradient() are infinite or NaN, the method must raise a NOT_SUPPORTED_ERR exception. Otherwise, the method must return a linear CanvasGradient initialized with the specified line.

Namespace:  C1.Web.iPhone
Assembly:  C1.Web.iPhone.Client (in C1.Web.iPhone.Client.dll)

Syntax

JavaScript
function createLinearGradient(x0, y0, x1, y1);

Parameters

x0
Type: System..::..Single
The x0.
y0
Type: System..::..Single
The y0.
x1
Type: System..::..Single
The x1.
y1
Type: System..::..Single
The y1.

Return Value

See Also