// cs174, assignment 1 sample file (RIGHT HANDED)

camera {
  location  <0, 22.5, 0>
  up        <0,  0,  1>
  right     <1.3333, 0,  0>
  look_at   <0, 0, 0>
}


light_source {<-5, 50, 0> color rgb <0.9, 0.9, 1.0>}

//goal
sphere { <15.4, -5, 10>, 0.6
  pigment { color rgb <1, 1, 1>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.5}
}

sphere { <-7.7, -5, 12>, 0.6
  pigment { color rgb <0.5, 1, 0.5>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.5}
}

sphere { <-10.4, -5, 3.8>, 0.6
  pigment { color rgb <0, 1, 0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.5}
}

sphere { <10.9, -5, 3>, 0.5
  pigment { color rgb <1, 0.2, 0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.5}
}

//eyes
sphere { <1.4, 1, 3.8>, 0.6
  pigment { color rgb <1, 1, 1>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <1.6, 1.5, 4.0>, 0.2
  pigment { color rgb <0, 0, 0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <0.9, 1, 4.4>, 0.6
  pigment { color rgb <1, 1, 1>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <1.1, 1.5, 4.6>, 0.2
  pigment { color rgb <0, 0, 0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

//start body
sphere { <1, 0, 4>, 1.2
  pigment { color rgb <0, 1.0, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <0.25, 0, 3.25>, 1
  pigment { color rgb <0, 1.0, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <-0.5, 0, 2.5>, 1
  pigment { color rgb <0, 1.0, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <-1.25, 0, 1.75>, 1
  pigment { color rgb <0, 1.0, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <-1.75, 0, 1.25>, 1
  pigment { color rgb <0, 1.0, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <-2, 0, 0.5>, 1
  pigment { color rgb <0, 1.0, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <-2, 0, -0.25>, 1
  pigment { color rgb <0, 1.0, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <-2, 0, -1.0>, 1
  pigment { color rgb <0, 1.0, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <-1.75, 0, -1.5>, 1
  pigment { color rgb <0, 1.0, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <-1.5, 0, -2>, 1
  pigment { color rgb <0, 1.0, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <-1, 0, -2.5>, 1
  pigment { color rgb <0, 1.0, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <-0.5, 0, -2.75>, 1
  pigment { color rgb <0, 1.0, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}

sphere { <0, 0, -3>, 1
  pigment { color rgb <0, 1.0, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.1}
}
//end worm

// trail
sphere { <3, -3, -5>, 0.2
  pigment { color rgb <0.8, 0.5, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.5}
}

sphere { <5, -3, -6>, 0.2
  pigment { color rgb <0.8, 0.5, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.5}
}

sphere { <7, -3, -7>, 0.2
  pigment { color rgb <0.8, 0.5, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.5}
}

sphere { <9, -3, -8>, 0.2
  pigment { color rgb <0.8, 0.5, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.5}
}

sphere { <11, -3, -9>, 0.2
  pigment { color rgb <0.8, 0.5, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.5}
}

sphere { <13, -3, -10>, 0.2
  pigment { color rgb <0.8, 0.5, 1.0>}
  finish {ambient 0.4 diffuse 0.8 reflection 0.5}
}


plane {<0, 1, 0>, -6
      pigment {color rgb <0.2, 0.2, 0.4>}
      finish {ambient 0.2 diffuse 0.6}
}