Graphics#endFill()

endFill() → {PIXI.Graphics} Applies a fill to the lines and shapes that were added since the last call to the beginFill() method. Returns PIXI.Graphics - Source code: pixi/primitives/Graphics.js (Line 519)

Graphics#endFill()

endFill() → {PIXI.Graphics} Applies a fill to the lines and shapes that were added since the last call to the beginFill() method. Returns PIXI.Graphics - Inherited From PIXI.Graphics#endFill Source code: pixi/primitives/Graphics.js (Line 519)

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 PIXI.GraphicsData - The generated GraphicsData object. Source code: pixi/primitives/Graphics.js (Line 1184)

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 PIXI.GraphicsData - The generated GraphicsData object. Inherited From PIXI.Graphics#drawShape Source code: pixi/primitives/Graphics.js (Line 1184)

Graphics#drawRoundedRect()

drawRoundedRect(x, y, width, height, radius) Parameters Name Type Description x Number The X coord of the top-left of the rectangle y Number The Y coord of the top-left of the rectangle width Number The width of the rectangle height Number The height of the rectangle radius Number Radius of the rectangle corners. In WebGL this must be a value between 0 and 9. Source code: pixi/primitives/Graphics.js (Line 550)

Graphics#drawRoundedRect()

drawRoundedRect(x, y, width, height, radius) Parameters Name Type Description x Number The X coord of the top-left of the rectangle y Number The Y coord of the top-left of the rectangle width Number The width of the rectangle height Number The height of the rectangle radius Number Radius of the rectangle corners. In WebGL this must be a value between 0 and 9. Inherited From PIXI.Graphics#drawRoundedRect Source code: pixi/primitives/Graphics.js (Line 550)

Graphics#drawRect()

drawRect(x, y, width, height) → {PIXI.Graphics} Parameters Name Type Description x Number The X coord of the top-left of the rectangle y Number The Y coord of the top-left of the rectangle width Number The width of the rectangle height Number The height of the rectangle Returns PIXI.Graphics - Source code: pixi/primitives/Graphics.js (Line 534)

Graphics#drawRect()

drawRect(x, y, width, height) → {PIXI.Graphics} Parameters Name Type Description x Number The X coord of the top-left of the rectangle y Number The Y coord of the top-left of the rectangle width Number The width of the rectangle height Number The height of the rectangle Returns PIXI.Graphics - Inherited From PIXI.Graphics#drawRect Source code: pixi/primitives/Graphics.js (Line 534)

Graphics#drawPolygon()

drawPolygon(path) → {PIXI.Graphics} Draws a polygon using the given path. Parameters Name Type Description path Array | PhaserPolygon The path data used to construct the polygon. Can either be an array of points or a Phaser.Polygon object. Returns PIXI.Graphics - Source code: pixi/primitives/Graphics.js (Line 598)

Graphics#drawPolygon()

drawPolygon(path) → {PIXI.Graphics} Draws a polygon using the given path. Parameters Name Type Description path Array | PhaserPolygon The path data used to construct the polygon. Can either be an array of points or a Phaser.Polygon object. Returns PIXI.Graphics - Inherited From PIXI.Graphics#drawPolygon Source code: pixi/primitives/Graphics.js (Line 598)