Class Graphics

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(): Graphics

Returns

Graphics

Properties

public static CIRC: number

public static ELIP: number

public static POLY: number

public static RECT: number

public alpha: number

public buttonMode: boolean

public children: DisplayObject[]

public click: IInteractionDataCallback

public filter: boolean

public hitArea: IHitArea

public interactive: boolean

public lineColor: string

public lineWidth: number

public mask: Graphics

public mousedown: IInteractionDataCallback

public mousemove: IInteractionDataCallback

public mouseout: IInteractionDataCallback

public mouseover: IInteractionDataCallback

public mouseup: IInteractionDataCallback

public mouseupoutside: IInteractionDataCallback

public parent: DisplayObjectContainer

public pivot: Point

public position: Point

public renderable: boolean

public rotation: number

public scale: Point

public stage: Stage

public tap: IInteractionDataCallback

public touchend: IInteractionDataCallback

public touchendoutside: IInteractionDataCallback

public touchmove: IInteractionDataCallback

public touchstart: IInteractionDataCallback

public visible: boolean

public worldAlpha: number

Methods

public addChild(child: DisplayObject)

Parameters

public addChildAt(child: DisplayObject, index: number)

Parameters

public beginFill(color?: number, alpha?: number)

Parameters

  • color?: number optional
  • alpha?: number optional

public clear()

public drawCircle(x: number, y: number, radius: number)

Parameters

  • x: number
  • y: number
  • radius: number

public drawElipse(x: number, y: number, width: number, height: number)

Parameters

  • x: number
  • y: number
  • width: number
  • height: number

public drawRect(x: number, y: number, width: number, height: number)

Parameters

  • x: number
  • y: number
  • width: number
  • height: number

public endFill()

public getChildAt(index: number): DisplayObject

Parameters

  • index: number

Returns

DisplayObject

public lineStyle(lineWidth?: number, color?: number, alpha?: number)

Parameters

  • lineWidth?: number optional
  • color?: number optional
  • alpha?: number optional

public lineTo(x: number, y: number)

Parameters

  • x: number
  • y: number

public moveTo(x: number, y: number)

Parameters

  • x: number
  • y: number

public removeChild(child: DisplayObject)

Parameters

public setInteractive(interactive: boolean)

Parameters

  • interactive: boolean

public swapChildren(child: DisplayObject, child2: DisplayObject)

Parameters