-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Description
Processing comes with a collection of defined constants. The ones featured in the reference:
- HALF_PI - https://processing.org/reference/HALF_PI.html
- PI https://processing.org/reference/PI.html
- QUARTER_PI https://processing.org/reference/QUARTER_PI.html
- TAU https://processing.org/reference/TAU.html
- TWO_PI https://processing.org/reference/TWO_PI.html
So, for example, the Processing.R example 3d-cube.R sketch begins:
PI <- 3.1415
And this line could be removed with the sketch still running correctly.
Supporting more of these constants in Processing.R will make it much easier to translate sketches back and for between Processing(Java) and Processing.R -- especially for new learners.
gaocegege