I would like to export either a single frame from animation or the result image after few steps, e.g. when I draw circles using the mouseX.
Here is the very basic code:
so, when the ‘s’ key is pressed, I would like to capture the whole image after moving the mouse with multiple circles, but the result is that I see just one circle. What am I doing wrong?
I will be greatful for any hints!
Thanks glv, true I should delete the line with the mousePressed to keep the code clean, simply keep my code the same way I like my glasses - clean and sharp. ! I am also happy the glasses are back in the right place . Summing up, this line let’s say was neutral for my code, but still I am missing the right solution, perhaps my way of thinking needs to be sorted.
The reference says SVG renderer will save the last frame, but since the boolean saveSVG is controlled by the ‘s’ key and before pressing it I have many circles drawn on my canvas, why it doesn’t export the whole image - saying that I feel like I’m getting closer to understand it. That’s means that no matter what I draw in previous frames, only the last one is saved - with just one circe…
Ok, but still…. how can I export to SVG the image, exactly the same as seen in the processing windows from an animation, in the same controlled way - by pressing the key on a keyboard.