# Recipe 49: Draw the picture in Figure 5.16

def coolpic():

  canvas=makeEmptyPicture(250, 250) #make an empty picture

  for index in range(25,1,-1): #loop in reverse from 25 to 1
    color = makeColor(index*10,index*5,index) #make a color based on loop position
    addRectFilled(canvas,1,1,index*10,index*10,color) #create a filed rectangle in the picture with dimensions based on loop position

  show(canvas)
  return canvas
