Cavas windowWidth and windowHeight woes

Hi All, I'm working on a P5.js sketch, that's hosted here (let me know if there's a preferable way of uploading source code). http://imaginationrock.com/interactive-selection1/index.html The canvas is initialized to windowWidth and windowHeight, however it is unintentionally being drawn at about a fifteen pixel offset, as if I had translated to (15, 15) before creating the canvas. The result is that the canvas ends of being a little bigger than the actual window and you have to scroll a bit to the right and down to see the missing 15 or so pixels (the grey panel on the right is drawn using background() and should cover the whole screen). I've scoured my code and the only time I'm using translate(); seems to be safely contained in a push/pop. Does anyone recognize what's happening here or have any ideas for how to proceed in debugging? Thanks everyone.

Answers

Sign In or Register to comment.