def draw(self, handle: DrawHandle): handle.mask(self._mask, self.offset)
def draw(self, handle: DrawHandle = 1): handle.polygon(self.points)
def draw(self, handle: DrawHandle): handle.polygon([(p[0], p[1]) for p in self._points])
def draw(self, handle: DrawHandle): polygon = [(self.x, self.y), (self.x + self.width, self.y), \ (self.x + self.width, self.y + self.height), \ (self.x, self.y + self.height)] handle.polygon(polygon)
def draw(self, handle: DrawHandle): handle.polygon(self._points.tolist())