code: public void setAmbient(float gray){
          ambient[0]=gray;
          ambient[1]=gray;
          ambient[2]=gray;
          Am = true;
      }
docs: Sets the ambient reflectance for shapes drawn to the screen.
  
  @param gray
  The gray-scale value of the ambient reflectance.