Example #1
0
 def keep_drawing_static(self):
     draw.set_color(0,0,0,1)
     draw.polygon((self.x1, self.y1, self.x2, self.y1, self.x1, self.y2))
Example #2
0
 def keep_drawing(self, x, y, dx, dy):
     x, y = self.check_snap(x,y)
     self.x2, self.y2 = x, y
     draw.set_color(0,0,0,1)
     draw.polygon((self.x1, self.y1, self.x2, self.y1, self.x1, self.y2))