Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript canvas without html

function createContext(width, height) {
    var canvas = document.createElement('canvas');
    canvas.width = width;
    canvas.height = height;
    return canvas.getContext("2d");
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #canvas #html
ADD COMMENT
Topic
Name
7+5 =