Class createjs.Graphics.LinearGradient
Defined in: graphics.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.Graphics.LinearGradient(colors, stops, x0, y0, x1, y1)
An inner class that represents a linear gradient used by the
createjs.Graphics.FillLinear class and the createjs.Graphics.StrokeLinear
class.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
createjs.Graphics.LinearGradient.get(colors, stops, x0, y0, x1, y1)
Creates a createjs.Graphics.LinaerGradient object.
|
getGradient(renderer)
Returns the CanvasGradient object attached to this object.
|
|
getText()
Returns the string representation of this object.
|
Class Detail
createjs.Graphics.LinearGradient(colors, stops, x0, y0, x1, y1)
An inner class that represents a linear gradient used by the
createjs.Graphics.FillLinear class and the createjs.Graphics.StrokeLinear
class.
- Parameters:
-
{Array.
} colors -
{Array.
} stops - {number} x0
- {number} y0
- {number} x1
- {number} y1
Method Detail
<static>
{createjs.Graphics.LinearGradient}
createjs.Graphics.LinearGradient.get(colors, stops, x0, y0, x1, y1)
Creates a createjs.Graphics.LinaerGradient object.
- Parameters:
-
{Array.
} colors -
{Array.
} stops - {number} x0
- {number} y0
- {number} x1
- {number} y1
- Returns:
- {createjs.Graphics.LinearGradient}
{CanvasGradient}
getGradient(renderer)
Returns the CanvasGradient object attached to this object.
- Parameters:
- {createjs.Graphics.CanvasRenderer} renderer
- Returns:
- {CanvasGradient}
{string}
getText()
Returns the string representation of this object.
- Returns:
- {string}