I'm playing with a bit of code to create a canvas element that ideally fills the screen, however there's this bit of javascript that I believe is rendering the canvas container to the width / height of the browser window, when really I want it to be a fixed pixel width that I determine
var canvas = document.querySelector("#canvas2"),
ctx = canvas.getContext('2d');
// Set Canvas to be window size
canvas.width = window.innerWidth;
canvas.height = window.innerHeight;
Would anyone be so kind as to tell m what I need to replace the window.innerWidth and window.innerHeight with to become a fixed width / height?