Sets the dimensions of the canvas, which should be between the min and max widths and height.
An array containing [width, height] of the canvas.
// set the width as 500 and height as 400set_dimensions([500, 400]); Copy
// set the width as 500 and height as 400set_dimensions([500, 400]);
Sets the dimensions of the canvas, which should be between the min and max widths and height.