Skip to content

Changes in 4.0

Ben Fry edited this page Sep 23, 2022 · 20 revisions

The primary goal of Processing 4.0 is to keep your code running for a long time. Between new OS updates and restrictions, hardware changes, and the shifting Java platform and its licensing, it's necessary to make significant modifications behind the scenes.

What's New in Processing 4?

  • Visit Tools → Theme Selector to choose a color theme. We like how this helps the environment feel more personal. You can also customize them yourself! More details here.

  • Not fond of the default sketch_220809a naming system? You can also select an alternate naming scheme in the Preferences window. It's also possible to create your own word list for generating sketch names.

  • We've added a new windowRatio() command that helps automatically resize your sketches whenever the window size changes. Youn can read about it in the release notes for beta 7, but a reference page is coming soon.

  • There's a new Movie Maker tool (based on ffmpeg) that can create animated GIFs as well as high-resolution lossless MPEG videos. Visit Tools → Movie Maker to try it out.

  • Apple Silicon is now supported (and very speedy!)

  • Sketch folder restrictions have been relaxed, making it easier to use version control. By default, the name of the main tab and the sketch folder will be kept in sync as with previous versions of Processing. But you can turn this off by visiting the Preferences window.

  • Many, many changes have been made to future-proof the software, like using Java 17.

  • Processing 4.0 also includes hundreds of bug fixes and usability updates. You can see the gory details in the revisions document.

Troubleshooting 3.0 sketches

  • The move to Java 17 instead of Java 8 is a significant shift, and may cause things to break. We've done our best to minimize that! For most people, it will seem like nothing is different.

  • If you're using the FX2D renderer, you'll need to use Sketch → Import Library to add the JavaFX library to your sketch. Newer JavaFX releases are significantly larger, so we had to make it an optional library.

  • It is possible that some Library, Mode, or Tool contributions won't work with this release. You may want to use a separate sketchbook folder for your Processing 4 projects, so that you can install Libraries, Modes, and Tools that you know will work properly.

  • There is no 32-bit support, except for on the Raspberry Pi. The supported platforms will be Windows 10 (64-bit), Linux (Ubuntu 20.04, 64-bit), and macOS Big Sur and Monterey.

  • Please, please, please use the 4.0 release. It's drastically better, and we don't have time to support 3.x as well. If you run into problems, let us know and we'll try to fix it.

Changes in every 4.0 release

Click here for detailed information about the revisions between each of the 4.0 alpha and beta releases.

Changes in 3.x and earlier

You can also read about the changes in 3.x, or changes in 2.x and earlier.