I
I
Ilya Beloborodov2017-05-09 00:53:42
JavaScript
Ilya Beloborodov, 2017-05-09 00:53:42

Canvas. Prohibit moving beyond the border?

There is such a map jsfiddle.net/AbdiasSoftware/Us9nH
How to prevent the "mask" from going beyond the picture? In the current example, you can go right and down infinitely far.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question