python-lottie  0.6.10+dev42a5126
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.utils.animation.MultiSineDisplacer Class Reference
Inheritance diagram for lottie.utils.animation.MultiSineDisplacer:
[legend]
Collaboration diagram for lottie.utils.animation.MultiSineDisplacer:
[legend]

Public Member Functions

def __init__ (self, waves, time_start, time_end, n_frames, speed=1, axis=90, amplitude_scale=1)
 Displaces points as if they were following a sine wave. More...
 
- Public Member Functions inherited from lottie.utils.animation.PointDisplacer
def __init__ (self, time_start, time_end, n_frames)
 
def animate_point (self, prop)
 
def animate_bezier (self, prop)
 
def frame_time (self, f)
 

Public Attributes

 waves
 
 speed_f
 
 axis
 
 amplitude_scale
 
- Public Attributes inherited from lottie.utils.animation.PointDisplacer
 time_start
 When the animation shall start. More...
 
 time_end
 When the animation shall end. More...
 
 n_frames
 Number of frames in the animation. More...
 
 time_delta
 Length of a frame. More...
 

Detailed Description

Definition at line 285 of file animation.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.animation.MultiSineDisplacer.__init__ (   self,
  waves,
  time_start,
  time_end,
  n_frames,
  speed = 1,
  axis = 90,
  amplitude_scale = 1 
)

Displaces points as if they were following a sine wave.

Parameters
wavesList of tuples (wavelength, amplitude)
time_startWhen the animation shall start
time_endWhen the animation shall end
n_framesNumber of keyframes to add
speedNumber of peaks a point will go through in the given time If negative, it will go the other way
axisWave peak direction
amplitude_scaleMultiplies the resulting amplitude by this factor

Definition at line 286 of file animation.py.

Member Data Documentation

◆ amplitude_scale

lottie.utils.animation.MultiSineDisplacer.amplitude_scale

Definition at line 304 of file animation.py.

◆ axis

lottie.utils.animation.MultiSineDisplacer.axis

Definition at line 303 of file animation.py.

◆ speed_f

lottie.utils.animation.MultiSineDisplacer.speed_f

Definition at line 302 of file animation.py.

◆ waves

lottie.utils.animation.MultiSineDisplacer.waves

Definition at line 301 of file animation.py.


The documentation for this class was generated from the following file: