Class createjs.Graphics.RadialGradient
Defined in: graphics.js.
Constructor Attributes | Constructor Name and Description |
---|---|
createjs.Graphics.RadialGradient(colors, stops, x0, y0, r0, x1, y1, r1)
An inner class that represents a radial gradient used by the
createjs.Graphics.FillRadial class and the createjs.Graphics.StrokeRadial
class.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
createjs.Graphics.RadialGradient.get(colors, stops, x0, y0, r0, x1, y1, r1)
Creates a createjs.Graphics.RadialGradient object.
|
getGradient(renderer)
Returns the CanvasGradient object attached to this object.
|
|
getText()
Returns the string representation of this object.
|
Class Detail
createjs.Graphics.RadialGradient(colors, stops, x0, y0, r0, x1, y1, r1)
An inner class that represents a radial gradient used by the
createjs.Graphics.FillRadial class and the createjs.Graphics.StrokeRadial
class.
- Parameters:
-
{Array.
} colors -
{Array.
} stops - {number} x0
- {number} y0
- {number} r0
- {number} x1
- {number} y1
- {number} r1
Method Detail
<static>
{createjs.Graphics.RadialGradient}
createjs.Graphics.RadialGradient.get(colors, stops, x0, y0, r0, x1, y1, r1)
Creates a createjs.Graphics.RadialGradient object.
- Parameters:
-
{Array.
} colors -
{Array.
} stops - {number} x0
- {number} y0
- {number} r0
- {number} x1
- {number} y1
- {number} r1
- Returns:
- {createjs.Graphics.RadialGradient}
{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}