InterLAB-UC_test_audio_citla/Star.pde
class Star {
  float x;
  float y;
  float z;


  Star() {
    x = random (-width, width);
    y = random (-height, height);
    z = random (width);
  }


  void update() {
  z = z-3;
  
  if (z <= 10){
    z = width;
     x = random (-width, width);
    y = random (-height, height);
    
   }

  }
  // println(z);;

void show() {
  fill (255);
  noStroke();

  float sx =map (x /z, 0, 1, 0, width);
  float sy =map (y /z, 0, 1, 0, height);
  float sz= map (z /z, 0, 1, 0, width);
 float r = map (z,0, width,16,0);
 
  ellipse(sx, sy, r, 8);
}
}