Not sure using the mouse would be the best to get that effect.
Basically what you want is the have the canvas always center in an entity that you can move. As you move that entity, you move in the canvas (a bit like a top down video game actually) .
The way I would move that entity would be with the arrows for example (simple and intuitive).
I don’t think it would be intuitive with the mouse simply because you can’t keep going right, for example, as oppose as you can keep pressing the right arrow in the keyboard.
Thanks jb4x. Yes I understand what you mean. It’s just that in the reference I had shared (it’s from a famous old website done in Flash). Gave you the feeling that you were drawing with your mouse.
I can create some sort of continuous line like this but the effect is very dependent on the mouse coordinates and not arrow keys that way. Do you feel they have used the same understanding in the reference? It’s a grungy texture that they are using there that is tile-able.