Answers for "canvas resize canvas"

1

canvas resize canvas

(window.onresize = () => {
	canvas.width = innerWidth, canvas.height = innerHeight;
})();
Posted by: Guest on August-12-2021
0

js change canvas resolution

canvasElement.width = 1920;
canvasElement.height = 1080;
// note, canvasElement.style.width != canvasElement.width
// cE.style.width is the size of the canvas and cE.width is it's resolution
Posted by: Guest on August-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language