// Last edited on 2001-07-30 20:12:14 by stolfi

#include "colors.inc"

background{ color rgb < 0.75, 0.60, 0.50 > }



light_source {
  < 15.00, 25.00, 30.00 >
  color rgb < 1.00, 1.00, 1.00 >
} 

camera {
  location  <  10.00, 30.00, 10.00 >
  right     <  -0.80, 0.00, 0.00 >
  up        <  0.00, 0.00, 0.60 >
  sky       <  0.00, 0.00, 1.00 >
  look_at   <  0.00, 0.00, 0.00 >
} 

  #declare rotulo =
   text { 
       ttf "arial.ttf"
            "POWER"
             1, 0.5
             rotate x*90
             rotate z*180
             translate <4,4,0>
             pigment {Red}
        }
#declare rotulo1 =
   text { 
       ttf "arial.ttf"
            "MAC"
             1, 0.5
             rotate x*90
             rotate z*180
             translate <4,4,-2>
             pigment {Red}
        }
 declare rotulo2 =
   text { 
       ttf "arial.ttf"
            "COCA"
             1, 0.5
             rotate x*90
             rotate z*180
             translate <4,4,-4>
             pigment {Red}
        }
 cone {
        <0, 0, 5>, 5    // Center and radius of one end
        <0, 0, 0>, 5*clock    // Center and radius of other end
        pigment { Blue}
      }
 cone  {
        <0, 0, -5>, 5    // Center and radius of one end
        <0, 0, 0>, 5*clock    // Center and radius of other end
         pigment {Yellow}
      }
  #if (clock <=0.75)
   #if ((clock>=0.5) & (clock<=0.75))
      #declare aux = (clock-0.5)/(0.75-0.5);
      #declare temp = 4*aux*(1-aux);
      #declare altura = 0.5*(1-temp)+9*(temp);
      #declare rotacao = 180*(1-aux);
      #declare posicaox = 10*(1-aux)-2.5*aux; 
       cylinder {
             <0, 0, 6>,     // Center of one end
             <0, 0, 4>,     // Center of other end
             1            // Radius
             pigment { Red }
             translate x*posicaox
             translate z*altura
             rotate x*rotacao
          }
  #end
 #else
     cylinder {
             <0, 0, 6>,     // Center of one end
             <0, 0, 4>,     // Center of other end
             1            // Radius
             pigment { Red }
             translate x*-2.5

             } 
          object {rotulo }
         object {rotulo1 }
         object {rotulo2 }
#end