Class: GraphicsData

PIXI.GraphicsData

A class to contain data useful for Graphics objects

new PIXI.GraphicsData (shape, fillStyle, lineStyle, matrix)

Name Type Default Description
shape PIXI.Circle | PIXI.Rectangle | PIXI.Ellipse | PIXI.Polygon

The shape object to draw.

fillStyle PIXI.FillStyle null optional

the width of the line to draw

lineStyle PIXI.LineStyle null optional

the color of the line to draw

matrix PIXI.Matrix null optional

Transform matrix

Members

fillStyle PIXI.FillStyle

The style of the fill.

holes Array.<PIXI.GraphicsData>

The collection of holes.

lineStyle PIXI.LineStyle

The style of the line.

matrix PIXI.Matrix

The transform matrix.

points Array.<number>

The collection of points.

The shape object to draw.

type number

The type of the shape, see the Const.Shapes file for all the existing types,

Methods

Creates a new GraphicsData object with the same values as this one.

Returns:
Type Description
PIXI.GraphicsData Cloned GraphicsData object

destroy ()

Destroys the Graphics data.