a port of the Processing Visualization Language
Name

save()

Examples
line(20, 20, 80, 80);
// Saves a TIFF file named "diagonal.tif"
save("diagonal.tif");
// Saves a TARGA file named "cross.tga"
line(80, 20, 20, 80);
save("cross.tga");
Description

Saves an image from the display window. Images are saved in the PNG format as a Data URI, which can be displayed in the browser in a new window.

Syntax
save(filename)
Parameters
filename String: any sequence of letters and numbers
Returns None
Usage Web & Application
Related saveFrame()
createGraphics()

This reference is licensed under the CC BY-NC-SA 2.0 license:

Creative Commons License
Fork me on GitHub