Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js set canvas size

canvas.width = 300;
// or, if you only have the context
ctx.canvas.width = 300;
 
PREVIOUS NEXT
Tagged: #js #set #canvas #size
ADD COMMENT
Topic
Name
4+9 =