Graphics#tint
  • References/Game Development/Phaser/Graphics/Graphics

tint : number The tint applied to the graphic shape. This is a hex value. Apply a value of 0xFFFFFF to reset the tint.

2025-01-10 15:47:30
Graphics#getChildIndex()
  • References/Game Development/Phaser/Graphics/Graphics

getChildIndex(child) → {Number} Returns the index position of a child DisplayObject instance

2025-01-10 15:47:30
Graphics#checkWorldBounds
  • References/Game Development/Phaser/Graphics/Graphics

checkWorldBounds : boolean If this is set to true the Game Object checks if it is within the World bounds each frame

2025-01-10 15:47:30
Graphics#drawRoundedRect()
  • References/Game Development/Phaser/Graphics/Graphics

drawRoundedRect(x, y, width, height, radius) Parameters Name Type Description

2025-01-10 15:47:30
Graphics#name
  • References/Game Development/Phaser/Graphics/Graphics

name : string A user defined name given to this Game Object.This value isn't ever used internally by Phaser, it is meant

2025-01-10 15:47:30
Graphics#generateTexture()
  • References/Game Development/Phaser/Graphics/Graphics

generateTexture(resolution, scaleMode, padding)

2025-01-10 15:47:30
Graphics#getBounds()
  • References/Game Development/Phaser/Graphics/Graphics

getBounds() → {Rectangle} Retrieves the bounds of the graphic shape as a rectangle object

2025-01-10 15:47:30
Graphics#getLocalBounds()
  • References/Game Development/Phaser/Graphics/Graphics

getLocalBounds() → {Rectangle} Retrieves the non-global local bounds of the graphic shape as a rectangle

2025-01-10 15:47:30
Graphics#outOfBoundsKill
  • References/Game Development/Phaser/Graphics/Graphics

outOfBoundsKill : boolean If this and the checkWorldBounds property are both set to true then the kill

2025-01-10 15:47:30
Graphics#ignoreChildInput
  • References/Game Development/Phaser/Graphics/Graphics

ignoreChildInput : boolean If ignoreChildInput is false it will allow this objects children

2025-01-10 15:47:30