parameters: (self, vertices, color)
docstring: Draw a filled polygon given the screen vertices with the specified color.
docstring_summary: Draw a filled polygon given the screen vertices with the specified color.
docstring_tokens: Draw a filled polygon given the screen vertices with the specified color .
function: def DrawSolidPolygon(self, vertices, color):
          """
          Draw a filled polygon given the screen vertices with the specified color.
          """
          FILL = False
  
          if not FILL:
              self.DrawPolygon(vertices, color)
              return
  
          if not vertices:
              return
  
          if len(vertices) == 2:
              cv2.line(self.surface, cvcoord(vertices[0]), cvcoord(
                  vertices[1]), cvcolor(color), 1)
          else:
              pts = np.array(vertices, np.int32)
              pts = pts.reshape((-1, 1, 2))
              cv2.fillPoly(self.surface, [pts], cvcolor(color))
function_tokens: def DrawSolidPolygon ( self , vertices , color ) : FILL = False if not FILL : self . DrawPolygon ( vertices , color ) return if not vertices : return if len ( vertices ) == 2 : cv2 . line ( self . surface , cvcoord ( vertices [ 0 ] ) , cvcoord ( vertices [ 1 ] ) , cvcolor ( color ) , 1 ) else : pts = np . array ( vertices , np . int32 ) pts = pts . reshape ( ( - 1 , 1 , 2 ) ) cv2 . fillPoly ( self . surface , [ pts ] , cvcolor ( color ) )