Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

canvas resize canvas

(window.onresize = () => {
	canvas.width = innerWidth, canvas.height = innerHeight;
})();

// Condensed
(window.onresize=e=>{canvas.width=innerWidth,canvas.height=innerHeight})()
 
PREVIOUS NEXT
Tagged: #canvas #resize #canvas
ADD COMMENT
Topic
Name
1+2 =