PIXI.GraphicsData
class GraphicsData
A class to contain data useful for Graphics objects
Constructor
new PIXI.GraphicsData(shape: PIXI.Circle | PIXI.Ellipse | PIXI.Polygon | PIXI.Rectangle | PIXI.RoundedRectangle, fillStyle: PIXI.FillStyle, lineStyle: PIXI.LineStyle, matrix: PIXI.Matrix) → {}
Name | Type | Default | Description |
---|---|---|---|
shape | PIXI.Circle | PIXI.Ellipse | PIXI.Polygon | PIXI.Rectangle | PIXI.RoundedRectangle |
The shape object to draw. |
|
fillStyle | PIXI.FillStyle | undefined |
the width of the line to draw |
lineStyle | PIXI.LineStyle | undefined |
the color of the line to draw |
matrix | PIXI.Matrix | undefined |
Transform matrix |
Summary
Properties from GraphicsData
PIXI.FillStyle |
The style of the fill. |
Array<PIXI.GraphicsData> |
The collection of holes. |
PIXI.LineStyle |
The style of the line. |
PIXI.Matrix |
The transform matrix. |
number[] |
The collection of points. |
PIXI.Circle | PIXI.Ellipse | PIXI.Polygon | PIXI.Rectangle | PIXI.RoundedRectangle |
|
PIXI.SHAPES |
The type of the shape, see the Const.Shapes file for all the existing types, |
Methods from GraphicsData
PIXI.GraphicsData |
|
void |
Destroys the Graphics data. |
Public Properties
shape: PIXI.Circle | PIXI.Ellipse | PIXI.Polygon | PIXI.Rectangle | PIXI.RoundedRectangle
The shape object to draw.
type: PIXI.SHAPES
The type of the shape, see the Const.Shapes file for all the existing types,
Public Methods
clone() → {PIXI.GraphicsData}
Creates a new GraphicsData object with the same values as this one.
Type | Description |
---|---|
PIXI.GraphicsData |
|
destroy() → {void}
Destroys the Graphics data.
Type | Description |
---|---|
void |