Esempio n. 1
0
 def keep_drawing_static(self):
     draw.set_color(*resources.key_colors[self.key])
     graphics.set_line_width(5)
     draw.line(self.x1, self.y1, self.x2, self.y2)
     draw.set_color(0, 0, 0, 1)
     graphics.set_line_width(1)
     draw.line(self.x1, self.y1, self.x2, self.y2)
Esempio n. 2
0
 def keep_drawing_static(self):    
     draw.set_color(0,0,0,1)
     draw.line(self.x1, self.y1, self.x2, self.y2)
Esempio n. 3
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.line(self.x1, self.y1, self.x2, self.y2)
Esempio n. 4
0
 def keep_drawing_static(self):
     draw.set_color(0,0,0,1)
     draw.circle_outline(self.x, self.y, self.rad)
Esempio n. 5
0
 def keep_drawing(self, x, y, dx, dy):
     x, y = self.check_snap(x,y)
     self.rad = math.sqrt((x-self.x)*(x-self.x)+(y-self.y)*(y-self.y))
     draw.set_color(0,0,0,1)
     draw.circle_outline(self.x, self.y, self.rad)
Esempio n. 6
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))