示例#1
0
 def draw(self, handle: DrawHandle):
     handle.mask(self._mask, self.offset)
示例#2
0
 def draw(self, handle: DrawHandle = 1):
     handle.polygon(self.points)
示例#3
0
 def draw(self, handle: DrawHandle):
     handle.polygon([(p[0], p[1]) for p in self._points])
示例#4
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)
 def draw(self, handle: DrawHandle):
     handle.polygon(self._points.tolist())