code: public void setAmbient(float red, float green, float blue){
          ambient[0]=red;
          ambient[1]=green;
          ambient[2]=blue;
          Am = true;
      }
docs: Sets the ambient reflectance for shapes drawn to the screen.
  
  @param red
  The red color of the ambient reflectance.
  @param green
  The green color of the ambient reflectance.
  @param blue
  The blue color of the ambient reflectance.