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.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

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 number[]

The collection of points.

The shape object to draw.

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 () void

Destroys the Graphics data.