python-lottie  0.6.11+deved4e6c7
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:
Collaboration diagram for lottie.utils.animation.MultiSineDisplacer:

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

- Public Attributes inherited from lottie.utils.animation.PointDisplacer
 When the animation shall start. More...
 When the animation shall end. More...
 Number of frames in the animation. More...
 Length of a frame. More...

Detailed Description

Definition at line 285 of file

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.animation.MultiSineDisplacer.__init__ (   self,
  speed = 1,
  axis = 90,
  amplitude_scale = 1 

Displaces points as if they were following a sine wave.

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

Member Data Documentation

◆ amplitude_scale


Definition at line 313 of file

◆ axis


Definition at line 312 of file

◆ speed_f


Definition at line 311 of file

◆ waves


Definition at line 310 of file

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