Here’s how to at least run a basic “script”, possibly with OpenGL:
Create Java project in VS Code.
ctrl + shift + P then Java: Create ...
In the VS Code projects .classpath file visible in the project tree to the left, add all of this for basic functions and OpenGL, check the folders for your architecture and processing library path:
<classpathentry kind="lib" path="C:\Prog\processing-3.5.3\core\library\core.jar"/>
<classpathentry kind="lib" path="C:\Prog\processing-3.5.3\core\library\jogl-all.jar"/>
<classpathentry kind="lib" path="C:\Prog\processing-3.5.3\core\library\jogl-all-natives-windows-i586.jar"/>
<classpathentry kind="lib" path="C:\Prog\processing-3.5.3\core\library\gluegen-rt.jar"/>
<classpathentry kind="lib" path="C:\Prog\processing-3.5.3\core\library\gluegen-rt-natives-windows-i586.jar"/>
In the main class add (almost the same code can be found on the Eclipse tutorial from Processing, but the one there gave me compilation errors):
import processing.core.*;
public class App extends PApplet {
public void settings() {
size(500, 500);
}
public void draw(){
background(64);
ellipse(mouseX, mouseY, 20, 20);
}
public static void main(String[] passedArgs) {
App mySketch = new App();
String[] processingArgs = {"App"};
PApplet.runSketch(processingArgs, mySketch);
}
}