Is there a way to "cut out" a piece of image and use it with the P5.js library?
Example: Lets say I have a image of the size 100x100 but need to get a 10x10 pixel cutout that starts at pixel 50,50
I want to take the resulting 10x10 image and place it anywhere with image(result, X, Y, 10, 10).
Note: The only thing I could find online similar to this was using mask() but the result is not what I need.