UNPKG

pixelbox

Version:

A framework to fast-prototype pixel-based games

7 lines (6 loc) 172 B
module.exports = function createCanvas(width, height) { var canvas = document.createElement('canvas'); canvas.width = width; canvas.height = height; return canvas; };