Name | Type | Description |
---|---|---|
lineWidth |
number |
the width of the line to draw |
lineColor |
number |
the color of the line to draw |
lineAlpha |
number |
the alpha of the line to draw |
fillColor |
number |
the color of the fill |
fillAlpha |
number |
the alpha of the fill |
fill |
boolean |
whether or not the shape is filled with a colour |
nativeLines |
boolean |
the method for drawing lines |
shape |
PIXI.Circle | PIXI.Rectangle | PIXI.Ellipse | PIXI.Polygon |
The shape object to draw. |
lineAlignment |
number |
the alignment of the line. |
Members
-
whether or not the shape is filled with a colour
-
the alpha of the fill
-
the color of the fill
-
The alignment of any lines drawn (0.5 = middle, 1 = outter, 0 = inner).
- Default Value:
- 0
-
the alpha of the line to draw
-
the color of the line to draw
-
the width of the line to draw
-
if true the liens will be draw using LINES instead of TRIANGLE_STRIP
-
shape PIXI.Circle | PIXI.Ellipse | PIXI.Polygon | PIXI.Rectangle | PIXI.RoundedRectangle
-
The shape object to draw.
-
The type of the shape, see the Const.Shapes file for all the existing types,
Methods
-
Adds a hole to the shape.
Name Type Description shape
PIXI.Rectangle | PIXI.Circle The shape of the hole.
-
clone ()PIXI.GraphicsData
-
Creates a new GraphicsData object with the same values as this one.
Returns:
Type Description PIXI.GraphicsData Cloned GraphicsData object -
Destroys the Graphics data.