#

#When I thought about a larger space, I thought of panoramic photographs 
#and things like that which show large areas and views.  So, for this
problem
#I wanted to show a large outdoor view of perspective.

#The three sailing boats show the idea of distance. They get larger closer
#up and in the distance are very small.


g.norefresh()

def boat(a,b,width,right,height,bh,loop):
 for i in range (0,loop):
 #left sail
  g.pen(100)
  g.line(a+i,b,a+width+i,b)
  g.line(a+width+i,b,a+width+i,b+height)
  g.line(a+width+i,b+height,a+i,b)
 #right sail
  g.line(a+width+2+i,b,a+2*width+2+i,b)
  g.line(a+2*width+2+i,b,(a+width)+2+i,b+height)
  g.line((a+width)+2+i,b+height,a+width+2+i,b)
 #hull
  g.line(a+i+2,b-2,a+width+2*right+i+2,b-2)
  g.line(a+2*right+width+i+2,b-2,a+width+right+i+2,b-bh)
  g.line(a+width+right+i+2,b-bh,a+right+i+2,b-bh)
  g.line(a+right+i+2,b-bh,a+i+2,b-2)
 #wake
  g.pen(10)
  g.line(a+right,b-bh,a+right+i+2,b-bh)
  g.refresh()
  g.line(a+right,b-bh,a+right+i+2,b-bh)
  g.pause(1)
  g.paper(30)


boat(5,170,12,4,22,5,199)
boat(0,109,22,8,30,7,199)    
boat(10,13,35,15,45,9,199)