Пример #1
0
 def CreateKeyframe(self,
                    frame,
                    colour=(None, None, None),
                    radius=None,
                    length=None):
     keyframes.CreateKeyframe(
         self.keyframes, frame, {
             'colour_r': colour[0],
             'colour_g': colour[1],
             'colour_b': colour[2],
             'radius': radius,
             'length': length
         })
Пример #2
0
 def CreateKeyframe(self,
                    frame,
                    strength=None,
                    strengthrandrange=None,
                    direction=[None, None],
                    interpolationtype="linear"):
     keyframes.CreateKeyframe(
         self.keyframes, frame, {
             'strength': strength,
             'strengthrandrange': strengthrandrange,
             'direction_x': direction[0],
             'direction_y': direction[1],
             'interpolationtype': interpolationtype
         })
Пример #3
0
 def CreateKeyframe(self,
                    frame,
                    strength=None,
                    strengthrandrange=None,
                    pos=(None, None),
                    interpolationtype="linear"):
     keyframes.CreateKeyframe(
         self.keyframes, frame, {
             'strength': strength,
             'strengthrandrange': strengthrandrange,
             'pos_x': pos[0],
             'pos_y': pos[1],
             'interpolationtype': interpolationtype
         })
Пример #4
0
 def CreateParticleKeyframe(self,
                            frame,
                            colour=(None, None, None),
                            radius=None,
                            length=None,
                            interpolationtype="linear"):
     keyframes.CreateKeyframe(
         self.particlekeyframes, frame, {
             'colour_r': colour[0],
             'colour_g': colour[1],
             'colour_b': colour[2],
             'radius': radius,
             'length': length,
             'interpolationtype': interpolationtype
         })
     self.PreCalculateParticles()
Пример #5
0
 def CreateKeyframe(self,
                    frame,
                    pos=(None, None),
                    initspeed=None,
                    initdirection=None,
                    initspeedrandrange=None,
                    initdirectionrandrange=None,
                    particlesperframe=None,
                    genspacing=None,
                    interpolationtype="linear"):
     keyframes.CreateKeyframe(
         self.keyframes, frame, {
             'pos_x': pos[0],
             'pos_y': pos[1],
             'initspeed': initspeed,
             'initdirection': initdirection,
             'initspeedrandrange': initspeedrandrange,
             'initdirectionrandrange': initdirectionrandrange,
             'particlesperframe': particlesperframe,
             'genspacing': genspacing,
             'interpolationtype': interpolationtype
         })