Extends
- PIXI.Graphics
Methods
-
beginFill(color)
-
Start drawing of single color fill.
Parameters:
Name Type Description color
string String of "color" in CSS format.
Returns:
Return a itself (can use method chaining).
- Type
- createjs.Graphics
-
beginLinearGradientFill(colors)
-
Start drawing of linear gradient color fill.
Defined for compatibility. In Creap.js, execute createjs.Graphics#beginFill with the color of the end of the gradation.Parameters:
Name Type Description colors
array.<string> String(s) of "color" in CSS format.
Returns:
Return a itself (can use method chaining).
- Type
- createjs.Graphics
-
beginLinearGradientStroke(color)
-
Start drawing of linear gradient color line.
Defined for compatibility. In Creap.js, execute createjs.Graphics#beginStroke with the color of the end of the gradation.Parameters:
Name Type Description color
string String of "color" in CSS format.
Returns:
Return a itself (can use method chaining).
- Type
- createjs.Graphics
-
beginRadialGradientFill(colors)
-
Start drawing of radial gradient color fill.
Defined for compatibility. In Creap.js, execute createjs.Graphics#beginFill with the color of the end of the gradation.Parameters:
Name Type Description colors
array.<string> String(s) of "color" in CSS format.
Returns:
Return a itself (can use method chaining).
- Type
- createjs.Graphics
-
beginRadialGradientStroke(color)
-
Start drawing of radial gradient color line.
Defined for compatibility. In Creap.js, execute createjs.Graphics#beginStroke with the color of the end of the gradation.Parameters:
Name Type Description color
string String of "color" in CSS format.
Returns:
Return a itself (can use method chaining).
- Type
- createjs.Graphics
-
beginStroke(color)
-
Start drawing of single color line.
Parameters:
Name Type Description color
string String of "color" in CSS format.
Returns:
Return a itself (can use method chaining).
- Type
- createjs.Graphics
-
closePath()
-
Closes the current path.
Returns:
Return a itself (can use method chaining).
- Type
- createjs.Graphics
-
curveTo(cpX, cpY, cpX2, cpY2 [, toX] [, toY])
-
Draw curved line from current drawing point.
Parameters:
Name Type Argument Default Description cpX
number X coordinate of control point.
cpY
number Y coordinate of control point.
cpX2
number X coordinate of second control point.
If aruguments length is 4, this is considered to be "toX".cpY2
number Y coordinate of second control point.
If aruguments length is 4, this is considered to be "toY".toX
number <optional>
null X coordinate of end point.
toY
number <optional>
null Y coordinate of end point.
Returns:
Return a itself (can use method chaining).
- Type
- createjs.Graphics
-
lineTo(x, y)
-
Draw line from current drawing point.
Parameters:
Name Type Description x
number X coordinate of end point.
y
number Y coordinate of end point.
Returns:
Return a itself (can use method chaining).
- Type
- createjs.Graphics
-
moveTo(x, y)
-
Move current drawing point.
Parameters:
Name Type Description x
number X coordinate.
y
number Y coordinate.
Returns:
Return a itself (can use method chaining).
- Type
- createjs.Graphics
-
setStrokeStyle(thickness [, caps] [, joints] [, miterLimit] [, ignoreScale])
-
Specify the style of the line.
Parameters:
Name Type Argument Default Description thickness
string Width of line.
caps
number <optional>
0 Defined for compatibility. In Creap.js, this parameter doesn't have valid function.
joints
number <optional>
0 Defined for compatibility. In Creap.js, this parameter doesn't have valid function.
miterLimit
number <optional>
10 Defined for compatibility. In Creap.js, this parameter doesn't have valid function.
ignoreScale
<optional>
false Whether the stroke will be drawn at the specified thickness regardless of active transformations.
Returns:
Return a itself (can use method chaining).
- Type
- createjs.Graphics