Is there a way to display or conceal a portion of a canvas image similar to how Image Sprite works?
For example:
Imagine you have a canvas with dimensions of 200x200.
When a specific button is clicked, I would like to reveal a section of the canvas from coordinates (100, 100) to (120, 120). On another button click, I want to display the entire canvas instead.
Can anyone provide guidance on how to achieve this effect?