python-lottie  0.7.0+dev351ce82
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.utils.animation.SineDisplacer Class Reference
Inheritance diagram for lottie.utils.animation.SineDisplacer:
Collaboration diagram for lottie.utils.animation.SineDisplacer:

Public Member Functions

def __init__ (self, wavelength, amplitude, time_start, time_end, n_frames, speed=1, axis=90)
 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 250 of file

Constructor & Destructor Documentation

◆ __init__()

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

Displaces points as if they were following a sine wave.

wavelengthDistance between consecutive peaks
amplitudeDistance from a peak to the original position
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

Definition at line 251 of file

Member Data Documentation

◆ amplitude


Definition at line 276 of file

◆ axis


Definition at line 278 of file

◆ speed_f


Definition at line 277 of file

◆ wavelength


Definition at line 275 of file

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