(self, vertices, color)
Draw a wireframe polygon given the screen vertices with the given color.
Draw a wireframe polygon given the screen vertices with the given color.
Draw a wireframe polygon given the screen vertices with the given color .
def DrawPolygon(self, vertices, color):
        """
        Draw a wireframe 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)
        else:
            pygame.draw.polygon(self.surface, color.bytes, vertices, 1)
def DrawPolygon ( self , vertices , color ) : if not vertices : return if len ( vertices ) == 2 : pygame . draw . aaline ( self . surface , color . bytes , vertices [ 0 ] , vertices ) else : pygame . draw . polygon ( self . surface , color . bytes , vertices , 1 )