Extends
- Graphics
Members
Shortcut for setAlpha
.
Shortcut for arc
.
Shortcut for arcTo
.
Shortcut for bezierCurveTo
.
Shortcut for beginHole
The current default color transforming filter
Shortcut for closePath
.
Shortcut for drawCommands
.
Shortcut for drawCircle
.
Shortcut for drawEllipse
.
Shortcut for drawRect
.
Shortcut for endHole
Shortcut for beginFill
.
Shortcut for setTint
.
Shortcut for lineTo
.
Shortcut for moveTo
.
Shortcut for setMask
.
Shortcut for quadraticCurveTo
.
Shortcut for drawRoundedRect
.
Shortcut for setRenderable
.
Shortcut for drawRoundedRect
.
Shortcut for setTransform
.
Methods
Placeholder method for a beginBitmapFill
. Pixi does not support bitmap fills.
Returns:
Type | Description |
---|---|
this | The Graphics instance the method is called on (useful for chaining calls.) |
Placeholder method for a beginBitmapStroke
. Pixi does not support bitmap strokes.
Returns:
Type | Description |
---|---|
this | The Graphics instance the method is called on (useful for chaining calls.) |
Shortcut for setColor
.
Name | Type | Description |
---|---|---|
r |
number | |
rA |
number | |
g |
number | |
gA |
number | |
b |
number | |
bA |
number |
Returns:
Type | Description |
---|---|
this |
Execute a series of commands, this is the name of the short function
followed by the parameters -, e.g., ["f", "#ff0000", "r", 0, 0, 100, 200]
Name | Type | Description |
---|---|---|
commands |
DrawCommands |
The commands and parameters - to draw |
Returns:
Type | Description |
---|---|
this | This instance for chaining. |
Placeholder method for a linear gradient fill. Pixi does not support linear gradient fills, so we just pick the first color in colorArray
Name | Type | Description |
---|---|---|
colorArray |
number[] |
An array of CSS compatible color values @see |
Returns:
Type | Description |
---|---|
this | The Graphics instance the method is called on (useful for chaining calls.) |
Placeholder method for a beginLinearGradientStroke
. Pixi does not support gradient strokes.
Returns:
Type | Description |
---|---|
this | The Graphics instance the method is called on (useful for chaining calls.) |
Placeholder method for a radial gradient fill. Pixi does not support radial gradient fills, so we just pick the first color in colorArray
Name | Type | Description |
---|---|---|
colorArray |
number[] |
An array of CSS compatible color values @see |
Returns:
Type | Description |
---|---|
this | The Graphics instance the method is called on (useful for chaining calls.) |
Placeholder method for a beginRadialGradientStroke
. Pixi does not support gradient strokes.
Returns:
Type | Description |
---|---|
this | The Graphics instance the method is called on (useful for chaining calls.) |
Shortcut for lineStyle
.
Name | Type | Description |
---|---|---|
args |
any[] |
Returns:
Type | Description |
---|---|
this |
Placeholder method for a setStrokeDash
. Pixi does not support dashed strokes.
Returns:
Type | Description |
---|---|
this | The Graphics instance the method is called on (useful for chaining calls.) |
Chainable setter for alpha
Name | Type | Description |
---|---|---|
alpha |
number |
The alpha amount to use, from 0 to 1 |
Returns:
Type | Description |
---|---|
this | Instance for chaining |
Set additive and multiply color, tinting
Name | Type | Description |
---|---|---|
r |
number |
The multiply red value |
rA |
number |
The additive red value |
g |
number |
The multiply green value |
gA |
number |
The additive green value |
b |
number |
The multiply blue value |
bA |
number |
The additive blue value |
Returns:
Type | Description |
---|---|
this | Object for chaining |
Setter for mask to be able to chain.
Name | Type | Description |
---|---|---|
mask |
Graphics | Sprite |
The mask shape to use |
Returns:
Type | Description |
---|---|
this | Instance for chaining |
Function to set if this is renderable or not. Useful for setting masks.
Name | Type | Attributes | Description |
---|---|---|---|
renderable |
boolean |
<optional> |
Make renderable. Defaults to false. |
Returns:
Type | Description |
---|---|
this | This instance, for chaining. |
Set the tint values by color.
Name | Type | Description |
---|---|---|
tint |
string | number |
The color value to tint |
Returns:
Type | Description |
---|---|
this | Object for chaining |