Killeroo_ProcessingSketches/sketch_3d_example/sketch_3d_example.pde
//https://funprogramming.org/77-A-3D-rotating-cloud-of-points.html
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(1);
  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]);
  }
  
}
