3d sphere in processing

int y=-50;

void setup()
{
  size(500,500,P3D);

  background(255,0,255);
  stroke(250,0,20);
    strokeWeight(2);
}

void draw()
{
 background(10,0,20);
 
   translate(width/2,y,0);
  sphere(100);
   
    lights();
    y++;
    if(y>500)
    {
   
      y=-50;
   
    }
 
}