code: def draw(self, img, pixmapper, bounds):
          '''draw a polygon on the image'''
          if self.hidden:
              return
          self._pix_points = []
          for i in range(len(self.points)-1):
              if len(self.points[i]) > 2:
                  colour = self.points[i][2]
              else:
                  colour = self.colour
              self.draw_line(img, pixmapper, self.points[i], self.points[i+1],
                             colour, self.linewidthf draw(self, img, pixmapper, bounds):
          '''draw a polygon on the image'''
          if self.hidden:
              return
          self._pix_points = []
          for i in range(len(self.points)-1):
              if len(self.points[i]) > 2:
                  colour = self.points[i][2]
              else:
                  colour = self.colour
              self.draw_line(img, pixmapper, self.points[i], self.points[i+1],
                             colour, self.linewidth)
docs: draw a polygon on the image