We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi, I would like to see java files for a Processing program. I am assuming since Processing runs on java there is a way to have processing generate code in Java. Thanks for your help. Tim
Answers
operating system?
preference for Mac.
The processing run command wraps your code into a little bit of Java and does a few other changes like converting color to int. The output of this stage is saved somewhere on the file system before being compiled as Java. On Linux it's in the /tmp directory, named after the sketch but with a big random suffix. I don't know about macs but have a look there first.
There's not a lot of difference between the pde and the Java tbh - most of the work is done by libraries. Depends what you're after.
for instance, a simple sketch:
becomes /tmp/sketch_jul21a8978331535202291499temp/sketch_jul21a.java
(^ processing 1.5.1)
When you export a sketch, the PDE exports the .java files as well.