コード例 #1
0
 def update(self, dt):
     sr = self.parent.selection_rotation
     ss = self.parent.selection_scale
     current_location = self.parent.x, self.parent.y
     self.graphic.vertices = tools.rotate_triangle((0, 0), 
                               self.parent.radius*ss,
                               sr,
                               current_location)
コード例 #2
0
ファイル: tier_one.py プロジェクト: warp-one/electron
 def tick_graphics(self, dt):
     super(Sparkle, self).tick_graphics(dt)
     x, y = self.x, self.y
     self.flat_poly.vertices = rotate_triangle(
         (0, 0), self.radius * self.image_factor, self.rotation, (x, y))
コード例 #3
0
ファイル: tier_one.py プロジェクト: warp-one/electron
 def tick_graphics(self, dt):
     super(Sparkle, self).tick_graphics(dt)
     x, y = self.x, self.y
     self.flat_poly.vertices = rotate_triangle((0, 0), self.radius*self.image_factor, self.rotation, (x, y))