python-lottie  0.6.10+dev42a5126
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:
[legend]
Collaboration diagram for lottie.utils.animation.SineDisplacer:
[legend]

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

 wavelength
 
 amplitude
 
 speed_f
 
 axis
 
- 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 250 of file animation.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.animation.SineDisplacer.__init__ (   self,
  wavelength,
  amplitude,
  time_start,
  time_end,
  n_frames,
  speed = 1,
  axis = 90 
)

Displaces points as if they were following a sine wave.

Parameters
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 animation.py.

Member Data Documentation

◆ amplitude

lottie.utils.animation.SineDisplacer.amplitude

Definition at line 267 of file animation.py.

◆ axis

lottie.utils.animation.SineDisplacer.axis

Definition at line 269 of file animation.py.

◆ speed_f

lottie.utils.animation.SineDisplacer.speed_f

Definition at line 268 of file animation.py.

◆ wavelength

lottie.utils.animation.SineDisplacer.wavelength

Definition at line 266 of file animation.py.


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