I'm experimenting with JS canvas, trying to create pan and zoom effect. I've got the pan working. I've also got the zoom working but with a little help from SO. The zoom effect seems much more complicated than pan. Even though I've got a working code, I don't fully understand how it works, but I want to!

I don't have any problem in the code. I'm not trying to improve anything. I just want to know how the code works. Am I allowed to post a question where I want my code explained?

If not, can anyone lead me to somewhere where I can post this question or read up on the subject?


2 Answers 2



If we look at the close-reason meta thread, it clearly says:

We also expect you to understand how your code works. If you are seeking an explanation of how your code works, then we will treat the question as if someone else wrote it.

And that is off-topic, 100%.


No, because you're not looking for a review. It's... as simple as that, I'm afraid. Review answers would be useless to you.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .