(self, vertices, color)
Draw a filled polygon given the screen vertices with the given color.
Draw a filled polygon given the screen vertices with the given color.
Draw a filled polygon given the screen vertices with the given color .
def DrawSolidPolygon(self, vertices, color):
        """
        Draw a filled polygon given the screen vertices with the given color.
        """
        if not vertices:
            return

        if len(vertices) == 2:
            pygame.draw.aaline(self.surface, color.bytes, vertices[0],
                               vertices[1])
        else:
            pygame.draw.polygon(self.surface, (color/2).bytes+[127],
                                vertices, 0)
            pygame.draw.polygon(self.surface, color.bytes, vertices, 1)
def DrawSolidPolygon ( self , vertices , color ) : if not vertices : return if len ( vertices ) == 2 : pygame . draw . aaline ( self . surface , color . bytes , vertices [ 0 ] , vertices [ 1 ] ) else : pygame . draw . polygon ( self . surface , ( color / 2 ) . bytes + [ 127 ] , vertices , 0 ) pygame . draw . polygon ( self . surface , color . bytes , vertices , 1 )