Graphics#height

height : number The height of the displayObjectContainer, setting this will actually modify the scale to achieve the value set Inherited From PIXI.DisplayObjectContainer#height Source code: pixi/display/DisplayObjectContainer.js (Line 600)

Graphics#Graphics

new Graphics() The Graphics class contains methods used to draw primitive shapes such as lines, circles and rectangles to the display, and color and fill them. Source code: pixi/primitives/Graphics.js (Line 5)

Graphics#Graphics

new Graphics(game, x, y) A Graphics object is a way to draw primitives to your game. Primitives include forms of geometry, such as Rectangles,Circles and Polygons. They also include lines, arcs and curves. When you initially create a Graphics object it willbe empty. To 'draw' to it you first specify a lineStyle or fillStyle (or both), and then draw a shape. For example: graphics.beginFill(0xff0000); graphics.drawCircle(50, 50, 100); graphics.endFill(); This will draw a circle shape to the Gra

Graphics#getLocalBounds()

getLocalBounds() → {Rectangle} Retrieves the non-global local bounds of the graphic shape as a rectangle. The calculation takes all visible children into consideration. Returns Rectangle - The rectangular bounding area Source code: pixi/primitives/Graphics.js (Line 936)

Graphics#getLocalBounds()

getLocalBounds() → {Rectangle} Retrieves the non-global local bounds of the graphic shape as a rectangle. The calculation takes all visible children into consideration. Returns Rectangle - The rectangular bounding area Inherited From PIXI.Graphics#getLocalBounds Source code: pixi/primitives/Graphics.js (Line 936)

Graphics#getChildIndex()

getChildIndex(child) → {Number} Returns the index position of a child DisplayObject instance Parameters Name Type Description child DisplayObject The DisplayObject instance to identify Returns Number - The index position of the child display object to identify Inherited From PIXI.DisplayObjectContainer#getChildIndex Source code: pixi/display/DisplayObjectContainer.js (Line 112)

Graphics#getChildIndex()

getChildIndex(child) → {Number} Returns the index position of a child DisplayObject instance Parameters Name Type Description child DisplayObject The DisplayObject instance to identify Returns Number - The index position of the child display object to identify Inherited From PIXI.DisplayObjectContainer#getChildIndex Source code: pixi/display/DisplayObjectContainer.js (Line 112)

Graphics#getChildAt()

getChildAt(index) → {DisplayObject} Returns the child at the specified index Parameters Name Type Description index Number The index to get the child from Returns DisplayObject - The child at the given index, if any. Inherited From PIXI.DisplayObjectContainer#getChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 153)

Graphics#getChildAt()

getChildAt(index) → {DisplayObject} Returns the child at the specified index Parameters Name Type Description index Number The index to get the child from Returns DisplayObject - The child at the given index, if any. Inherited From PIXI.DisplayObjectContainer#getChildAt Source code: pixi/display/DisplayObjectContainer.js (Line 153)

Graphics#getBounds()

getBounds() → {Rectangle} Retrieves the bounds of the graphic shape as a rectangle object Returns Rectangle - the rectangular bounding area Source code: pixi/primitives/Graphics.js (Line 848)