renderer.resize()
Resizes the physical canvas dimensions.
Syntax
renderer.resize(width, height)
Parameters
width
Type: number
Width in device-independent pixels.
height
Type: number
Height in device-independent pixels.
Returns
Type: void
Notes
This changes the size of the HTML canvas element. It does not change the logical stage size (coordinate system).