I'm trying to get my canvas to fit the page, when i do:
ctx.canvas.width = window.innerWidth;
ctx.canvas.height = window.innerHeight;
It goes just over horizontally and vertically which is adding scroll bars. the size its going over is about the size of the scroll bars are being accounted for before they're even there (just a guess) is this whats happening, how would I go about getting it to fit the page with no scrollbars.