The goog.graphics.LinearGradient
Class
goog.graphics.LinearGradient
> goog.graphics.Fill
goog.graphics.LinearGradient(x1, y1, x2, y2, color1, color2, opt_opacity1, opt_opacity2)
Creates an immutable linear gradient fill object.
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.
.getColor1()
- returns {
string
}
- The start color of the gradient.
.getColor2()
- returns {
string
}
- The end color of the gradient.
.getOpacity1()
- returns {?
number
}
- The start opacity of the gradient.
.getOpacity2()
- returns {?
number
}
- The end opacity of the gradient.
.getX1()
- returns {
number
}
- The start X position of the gradient.
.getX2()
- returns {
number
}
- The end X position of the gradient.
.getY1()
- returns {
number
}
- The start Y position of the gradient.
.getY2()
- returns {
number
}
- The end Y position of the gradient.