def scale(self, factor):
        "Increases or decreases size of the polygon."
        for vertex in self.vertices:
            vertex *= factor
Increases or decreases size of the polygon.
recipes/Python/578004_processing/recipe-578004.py