This topic has not yet been rated - Rate this topic

createLinearGradient method

Creates an object that represents a linear gradient to use in a canvas context.

The canvas element, Section 5Internet Explorer 9

Syntax


ICanvasGradient retVal = object.createLinearGradient(x0, y0, x1, y1);

Parameters

x0 [in]

Type: float

The x-coordinate, in pixels, of the start point of the gradient.

y0 [in]

Type: float

The y-coordinate, in pixels, of the start point of the gradient.

x1 [in]

Type: float

The x-coordinate, in pixels, of the end point of the gradient.

y1 [in]

Type: float

The y-coordinate, in pixels, of the end point of the gradient.

Standards information

 

 

Build date: 11/12/2012

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.