I am new to Processing, I have a goal in mind and I have found some tutorials on youtube that I think I can use to reach my goal.
Here’s the code I’d like to tweak:
int amount = 300;
int[] x = new int[amount];
int[] y = new int[amount];
int[] z = new int[amount];
void setup() {
size(500,400,P3D);
background(0);
noFill();
stroke(255);
strokeWeight(2);
for(int i = 0; i<amount; i++) {
x[i] = int(random(-150, 150));
y[i] = int(random(-150, 150));
z[i] = int(random(-150, 150));
}
}
void draw() {
background(0);
translate(width/2, height/2);
rotateY(frameCount / 100.0);
box(300);
for(int i=0; i<amount; i++) {
point(x[i], y[i], z[i]);
}
}
However this yields
Picked up _JAVA_OPTIONS: -Dawt.useSystemAAFontSettings=gasp
java.lang.RuntimeException: Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x7fc9e801af90, owner true, ResourceToolkitLock[obj 0x63cbe4f1, isOwner true, <67f47c50, 22f6eeca>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>]]], but: [GLProfile[GLES1/GLES1.hw], GLProfile[GLES2/GLES3.hw], GLProfile[GL2ES1/GLES1.hw], GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GLES3/GLES3.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]
at processing.opengl.PSurfaceJOGL$2.run(PSurfaceJOGL.java:410)
at java.lang.Thread.run(Thread.java:748)
RuntimeException: Profile GL4bc is not available on X11GraphicsDevice[type .x11, connection :0, unitID 0, handle 0x7fc9e801af90, owner true, ResourceToolkitLock[obj 0x63cbe4f1, isOwner true, <67f47c50, 22f6eeca>[count 1, qsz 0, owner <main-FPSAWTAnimator#00-Timer0>]]], but: [GLProfile[GLES1/GLES1.hw], GLProfile[GLES2/GLES3.hw], GLProfile[GL2ES1/GLES1.hw], GLProfile[GL4ES3/GL4.hw], GLProfile[GL2ES2/GL4.hw], GLProfile[GL4/GL4.hw], GLProfile[GLES3/GLES3.hw], GLProfile[GL4/GL4.hw], GLProfile[GL3/GL4.hw], GLProfile[GL2GL3/GL4.hw]]
I am using Processing 3 under Arch Linux.