Embryonic Bird

back to still page

3C: Evoke the image of an 'egg' shape: smooth, round, yet not entirely symmetrical, using all the DBN knowledge you might have at your disposal. Think closely about how the s urface of the egg should be textured and decorated. Establish a clear underlying concept of computation, which will be demonstrated by your cleanliness of code.



command curve2 x1 y1 x2 y2 xinc yinc n p
{
   repeat a 1 n
   {
      pen p
      line x1 (y2+yinc) (x2+xinc) y1
      set x2 (x2+xinc)
      set y2 (y2+yinc)
   }
}
paper 25
//egg
curve2 0 0 45 0 -1 1 45 80
curve2  100 0 0 0 1 1 100 80
curve2 0 100 80 100 -1 -1 80 80
curve2 100 100 80 100 1 -1 20 80

//decoration
curve2 50 40 60 40 -1 1 20 40
curve2 60 50 50 50 1 1 20 60
curve2 50 60 40 60 1 -1 20 40
curve2 40 50 50 50 -1 -1 20 60