Graphics#drawShape()

drawShape(shape) → {PIXI.GraphicsData}

Draws the given shape to this Graphics object. Can be any of Circle, Rectangle, Ellipse, Line or Polygon.

Parameters
Name Type Description
shape Circle | Rectangle | Ellipse | Line | Polygon

The Shape object to draw.

Returns

The generated GraphicsData object.

Inherited From
Source code: pixi/primitives/Graphics.js (Line 1184)
doc_phaser
2017-02-14 10:49:55
Comments
Leave a Comment

Please login to continue.