setup()
A p5.js function that's called once when the sketch begins running. See the p5.js reference for more information.
In the copypastes.xyz editor, setup() re-runs every time you run your sketch. This means changes to setup() (e.g. setPrinter(), canvas size) take effect immediately.