$ 0 0 PImage img = get(some part of the sketch);img.save(savePath(insertFrame(filename)));The second line is what is in the saveFrame() function.There is also an article that might interest you:From several variables to arrays