I want to use the processing library with Python in Trinket to create very simple graphics files, for example, some national flags. (This is for a Code Club to teach the students about pixels, RGB colours etc.) I would like to be able to save the generated image to a disk file as a jpg or png file but I can’t make it work.
Trinket recognises the processing save()
function but just opens up a blank tab in the browser with no Save As dialog.
Is there a way of saving a graphics file generated by processing on Trinket?
Update: I was using Trinket on Microsoft Edge. I’ve just tried it on Firefox and it opens the image in the new tab, from where I can save it. Not sure why Edge is not opening the image in the same way…
Here is the link to my trinket: processing_saveimage (trinket.io)