Configuring Processing Sketch Surfaces in settings() Instead of setup()
Since Processing 3.0, surface configuration must happen in settings() before the window exists. This guide shows how to migrate legacy sketches, choose renderers, and handle HiDPI pixel density.