graphics.LinearGradient Extends goog.graphics.Fill
Creates an immutable linear gradient fill object.

Inheritance

Constructor

goog.graphics.LinearGradient(x1y1x2y2color1color2opt_opacity1opt_opacity2)

Parameters

x1 : number
Start X position of the gradient.
y1 : number
Start Y position of the gradient.
x2 : number
End X position of the gradient.
y2 : number
End Y position of the gradient.
color1 : string
Start color of the gradient.
color2 : string
End color of the gradient.
opt_opacity1 : ?number=
Start opacity of the gradient, both or neither of opt_opacity1 and opt_opacity2 have to be set.
opt_opacity2 : ?number=
End opacity of the gradient.

Instance Methods

Public Protected Private
getColor1()
No description.
code »
getColor2()
No description.
code »
getOpacity1() ?number
No description.
Returns: ?number  The start opacity of the gradient.
code »
getOpacity2() ?number
No description.
Returns: ?number  The end opacity of the gradient.
code »
getX1() number
No description.
Returns: number  The start X position of the gradient.
code »
getX2() number
No description.
Returns: number  The end X position of the gradient.
code »
getY1() number
No description.
Returns: number  The start Y position of the gradient.
code »
getY2() number
No description.
Returns: number  The end Y position of the gradient.
code »
getColor1() string
No description.
Returns: string  The start color of a gradient fill.
code »
getColor2() string
No description.
Returns: string  The end color of a gradient fill.
code »

Instance Properties

color1_ :
Start color of the gradient.
Code »
color2_ :
End color of the gradient.
Code »
constructor :
No description.
Code »
opacity1_ :
Start opacity of the gradient.
Code »
opacity2_ :
End opacity of the gradient.
Code »
x1_ :
Start X position of the gradient.
Code »
x2_ :
End X position of the gradient.
Code »
y1_ :
Start Y position of the gradient.
Code »
y2_ :
End Y position of the gradient.
Code »

Static Properties

goog.graphics.LinearGradient.superClass_ :
No description.
Code »

Package graphics

Package Reference