reference / pictures
save
Saves a picture of the window as a PNG file once the frame is drawn: save "shot.png". A plain name goes in the sketch's output folder, an absolute path is used as it is, and the folders are made. A run of # in the name is the frame number, so a save in draw makes a frame sequence: save "frame-####.png" writes frame-0001.png, frame-0002.png and so on.
fill goldcircle at 200 150 radius 80text "press s to save a picture" at 110 270on key "s" [ save "shot.png" ]
How to write it
save name