Class CanvasRenderer

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(width: number, height: number, view?: HTMLCanvasElement, transparent?: boolean): CanvasRenderer

Parameters

  • width: number
  • height: number
  • view?: HTMLCanvasElement optional
  • transparent?: boolean optional

Returns

CanvasRenderer

Properties

public context: CanvasRenderingContext2D

public height: number

public view: HTMLCanvasElement

public width: number

Methods

public render(stage: Stage)

Parameters

public resize(width: number, height: number)

Parameters

  • width: number
  • height: number