A class to contain data useful for Graphics objects

Memberof

PIXI

Constructors

  • Parameters

    • shape: IShape

      The shape object to draw.

    • Optional fillStyle: FillStyle

      the width of the line to draw

    • Optional lineStyle: LineStyle

      the color of the line to draw

    • Optional matrix: Matrix

      Transform matrix

    Returns GraphicsData

Properties

fillStyle: FillStyle

The style of the fill.

holes: GraphicsData[]

The collection of holes.

lineStyle: LineStyle

The style of the line.

matrix: Matrix

The transform matrix.

points: number[]

The collection of points.

shape: IShape

The shape object to draw.

Member

type: SHAPES

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 GraphicsData

    • Cloned GraphicsData object
  • Destroys the Graphics data.

    Returns void

Generated using TypeDoc