Пример #1
0
 def draw(self, handle: DrawHandle = 1):
     handle.polygon(self.points)
Пример #2
0
 def draw(self, handle: DrawHandle):
     handle.polygon([(p[0], p[1]) for p in self._points])
Пример #3
0
 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)
Пример #4
0
 def draw(self, handle: DrawHandle):
     handle.polygon(self._points.tolist())