Phaser API Documentation

  Version: 
init(width, height)

Description:

Sets up this Render Target to the given width and height, creating a new frame buffer and texture. This method is called automatically by the constructor and at no other time.

Parameters:

name type description
width number

The new width of this Render Target.

height number

The new height of this Render Target.

Since: 3.86.0