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

Public Member Functions

def __init__ (self, origin, range, offset_func, time_start, time_end, n_frames, falloff_exp=1)
 Uses a custom offset function, and applies a falloff to the displacement. 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

 origin
 
 range
 
 offset_func
 
 falloff_exp
 
- 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 516 of file animation.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.utils.animation.FollowDisplacer.__init__ (   self,
  origin,
  range,
  offset_func,
  time_start,
  time_end,
  n_frames,
  falloff_exp = 1 
)

Uses a custom offset function, and applies a falloff to the displacement.

Parameters
originOrigin point for the falloff
rangeRadius after which the points will not move
offset_funcFunction returning an offset given a ratio of the time
time_startWhen the animation shall start
time_endWhen the animation shall end
n_framesNumber of frames in the animation
falloff_expExponent for the falloff

Definition at line 517 of file animation.py.

Member Data Documentation

◆ falloff_exp

lottie.utils.animation.FollowDisplacer.falloff_exp

Definition at line 540 of file animation.py.

◆ offset_func

lottie.utils.animation.FollowDisplacer.offset_func

Definition at line 539 of file animation.py.

◆ origin

lottie.utils.animation.FollowDisplacer.origin

Definition at line 537 of file animation.py.

◆ range

lottie.utils.animation.FollowDisplacer.range

Definition at line 538 of file animation.py.


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