Switching javascript neural network to java

I agree here, there is no Processing compiler. However, there is a Processing preprocessor. This is a big difference, because what actually happens is that Processing uses ANTLR to translate your sketch into a Java class, so it joins all of your tabs together, adds a main method, adds all the necessary imports (and moves them out of the class so that the Java compiler won’t spit out any errors), changes colors to ints, replaces color literals (#rrggbb) with (probably) the color(r, g, b) function, and so much more I’m not able to describe here.

1 Like