Here are the current attributes of my canvas element:
var c = document.getElementById("c");
var ctx = c.getContext("2d");
//making the canvas appear fullscreen
c.height = window.innerHeight;
c.width = window.innerWidth;
Upon placing the canvas on a page with more content than fits in the height of the screen, the canvas cuts off when scrolling down. This is expected. How can I modify the height property to have the canvas extend as far down as there is content on the page?