boslanger_Processing-examples-java-like/warp_speed.pde
Star [] stars = new Star[500];

void setup() {
  size(1920, 1020);
  for (int i = 0; i < stars.length; i++) 
  {
    stars[i] = new Star();
  }
}

void draw() {
  background(0);
  translate(width/2, height/2);
  // loop that draws the stars
  for (int i = 0; i < stars.length; i++) {
    if (i % 250 == 0) {
    // colors one star to make a 'planet'
      stars[i].ShowPlanet(); 
      stars[i].update();
    } else {
      stars[i].update(); 
      stars[i].show();
    }
  }
}
