Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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
 
PREVIOUS NEXT
Tagged: #js #change #canvas #resolution
ADD COMMENT
Topic
Name
8+3 =