We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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.
Answers
The
translate()
should help. https://processing.org/reference/translate_.html You can place it in the beginning of yourdraw()
method, with some variables as arguments. Changing these variables then will move all the drawing accordingly.