Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

resize canvas javascript

const canvas = document.getElementById('yourCanvas');
canvas.width = 200; // Use document.documentElement.clientWidth for full page width!
canvas.height = 200; // Use document.documentElement.clientHeight for full page height!
 
PREVIOUS NEXT
Tagged: #resize #canvas #javascript
ADD COMMENT
Topic
Name
5+9 =