Skip to content

Processing 4.0.2

Compare
Choose a tag to compare
@processing-bot processing-bot released this 19 Aug 06:44
· 562 commits to main since this release

Revision 1287 – 24 November 2022

🦃 Happy Thanksgiving! 🦃

Fixing more regressions and other steps backward found since the 4.0 release. Enjoy!

the big ones

  • OpenGL apps now work with macOS Ventura, once again thanks to @jaegonlee. #544

  • Library version number parsing wasn't ignoring comments properly, so libraries that followed the template closely were showing The version number for “…” is not a number. #586, #553

  • The Updates tab of the Contribution Manager was throwing error messages about this.progressBar. #567

  • fullScreen() with pixelDensity(2) was broken with the default renderer. On startup, the sketch would report Display -1 does not exist, returning 1 for displayDensity(-1). #487

  • JSSC update for M1/M2 from @sampottinger #525, #577

the li'l and medium ones

  • After creating 26 sketches, the “take a break” message still showed up after restarting Processing. #582

  • With multiple users sharing a machine, Processing would not work properly for the second user due to a problem with the temporary directory. #549

  • Added explanation for how to fix Processing when a user disallows access to the Documents folder on macOS. #581

  • Fixed an infinite loop that could be caused by running out of options for a sketch naming scheme.

  • When calling random() on a list (now choice()) with no elements, it would throw a weird Exception. Now it throws a more descriptive exception.

need some help here

Contributions from the community!

steps forward

  • Added a choice() method to the XxxxList classes, which returns a random value from the list. Similarly removeChoice() removes a random element from the list and returns the value.

  • Also added a choice() method that returns random integers. So int value = choice(10) is a shorthand way of saying int value = (int) random(10)

  • Removed the choice() (formerly random()) method from the XxxxList classes that took a PApplet object for its random number seed/generator. Just feels like overkill at this point.

internal changes

  • Using more Java 17 syntax in the code. No plans to really scrub everything to change the syntax over, just a matter of cleaning things up as we go.

  • Fixed a potential casting problem with Platform and DefaultPlatform. Should have been unreachable, but fixed anyway.

  • Brought back getCodeIndex() for GUI Builder Tool… then removed it again. #545, #596

me talking on the wiki

  • Added a Translations page to the 4.x wiki, which is update to the Localization page from the 3.x repository.

  • Posted an explanation of how to create a naming.json file so you can set up your own sketch naming schemes.