Saving Current Frame on Mouse Click

Hello @Shwaa,

Thank you for your suggestion. Copying the current canvas to something like a PImage in memory seems to be a much cleaner option than saving each image to disk. I think this will be perfect for what I am trying to achieve, but I have a feeling that I need to copy to a PImage at the start of draw() instead of the end: As far as I’m aware, draw() gets called directly after displaying the current image (regardless of how slow the framerate is) so if I copy at the end of draw(), the image I am trying to save will probably already be overwritten by the next image to be displayed.

I will give this a go and report back here.

Thanks again.