Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Graphics

Index

Constructors

  • new Graphics(changeCb?: (() => void)): Graphics
  • Parameters

    • Optional changeCb: (() => void)
        • (): void
        • Returns void

    Returns Graphics

Properties

_changeCb: any
commands: Command[]

Methods

  • drawRect(x: number, y: number, width: number, height: number, fillColor?: Color, lineColor?: Color, lineWidth?: number): void
  • 绘制矩形

    Parameters

    • x: number
    • y: number
    • width: number
    • height: number
    • Optional fillColor: Color
    • Optional lineColor: Color
    • Optional lineWidth: number

    Returns void

  • drawTexture(x: number, y: number, width: number, height: number, tex: <internal>.default): void
  • Parameters

    Returns void

Generated using TypeDoc