Exemplo n.º 1
0
 def draw_territories():
     for pair in Saw.territories[:]:
         pair[0] = [*pair[0][:3], pair[0][3] - Saw.opacity_step]
         if pair[0][3] <= 0:
             Saw.territories.remove(pair)
         else:
             batch_draw(pair[1], pair[0])
Exemplo n.º 2
0
 def draw_lines():
     for pair in Saw.lines[:]:
         pair[0] -= Saw.opacity_step
         if pair[0] <= 0:
             Saw.lines.remove(pair)
         else:
             batch_draw(pair[1], (*Saw.line_color, pair[0]))
Exemplo n.º 3
0
 def draw_lines(self):
     batch_draw(self.lines, self.line_color)