How do I move the grid so I can see items not in view?

So write now, in my draw method I have a loop that creates a bar graph on the screen. However, there are so many bars some do not fit on the screen. Nothing I have tried so far has worked. I am trying to either move the background when the mouse or keyboard are clicked, or increment the number the for loop starts at. But nothing I do seems to be affecting anything at all. It is like once the bar graph is drawn it can't be changed. I am writing this sketch inside an Html5 canvas.

Tagged:

Answers

Sign In or Register to comment.