Processing version define?

edited February 2014 in Using Processing

Something that would be helpful which I can't seem to glean from google is whether or not there is any kind of "define" within Processing that allows a sketch to know which version (ie PROCESSING_VERSION=1.5.1, 2.0, or 2.1.1) of Processing is running it.

This would be helpful for running a sketch across multiple versions of Processing. This may seem like a bit of an edge case but as various libraries/code work in one version of Processing and not in another, having a sketch that doesn't run and pops up a browser window telling me something like "screenWidth has been changed to displayWidth" has become increasingly appealing. It would be nice to conditionally import libraries (XML comes to mind) that work with a given release.

Is there anything to this effect that exists?

Answers

Sign In or Register to comment.