python-lottie  0.6.11+devcecd248
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.properties.KeyframeBezier Class Reference

Public Member Functions

def __init__ (self, h1, h2)
 
def from_keyframe (cls, keyframe)
 
def bezier (self)
 
def point_at (self, t)
 
def slope_at (self, t)
 
def t_for_x (self, x)
 
def y_at_x (self, x)
 

Public Attributes

 h1
 
 h2
 

Static Public Attributes

int NEWTON_ITERATIONS = 4
 
float NEWTON_MIN_SLOPE = 0.001
 
float SUBDIVISION_PRECISION = 0.0000001
 
int SUBDIVISION_MAX_ITERATIONS = 10
 
int SPLINE_TABLE_SIZE = 11
 
float SAMPLE_STEP_SIZE = 1.0 / (SPLINE_TABLE_SIZE - 1.0)
 

Detailed Description

Definition at line 10 of file properties.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.properties.KeyframeBezier.__init__ (   self,
  h1,
  h2 
)

Definition at line 18 of file properties.py.

Member Function Documentation

◆ bezier()

def lottie.objects.properties.KeyframeBezier.bezier (   self)

Definition at line 27 of file properties.py.

◆ from_keyframe()

def lottie.objects.properties.KeyframeBezier.from_keyframe (   cls,
  keyframe 
)

Definition at line 24 of file properties.py.

◆ point_at()

def lottie.objects.properties.KeyframeBezier.point_at (   self,
  t 
)

Definition at line 45 of file properties.py.

◆ slope_at()

def lottie.objects.properties.KeyframeBezier.slope_at (   self,
  t 
)

Definition at line 54 of file properties.py.

◆ t_for_x()

def lottie.objects.properties.KeyframeBezier.t_for_x (   self,
  x 
)

Definition at line 92 of file properties.py.

◆ y_at_x()

def lottie.objects.properties.KeyframeBezier.y_at_x (   self,
  x 
)

Definition at line 111 of file properties.py.

Member Data Documentation

◆ h1

lottie.objects.properties.KeyframeBezier.h1

Definition at line 19 of file properties.py.

◆ h2

lottie.objects.properties.KeyframeBezier.h2

Definition at line 20 of file properties.py.

◆ NEWTON_ITERATIONS

int lottie.objects.properties.KeyframeBezier.NEWTON_ITERATIONS = 4
static

Definition at line 11 of file properties.py.

◆ NEWTON_MIN_SLOPE

float lottie.objects.properties.KeyframeBezier.NEWTON_MIN_SLOPE = 0.001
static

Definition at line 12 of file properties.py.

◆ SAMPLE_STEP_SIZE

float lottie.objects.properties.KeyframeBezier.SAMPLE_STEP_SIZE = 1.0 / (SPLINE_TABLE_SIZE - 1.0)
static

Definition at line 16 of file properties.py.

◆ SPLINE_TABLE_SIZE

int lottie.objects.properties.KeyframeBezier.SPLINE_TABLE_SIZE = 11
static

Definition at line 15 of file properties.py.

◆ SUBDIVISION_MAX_ITERATIONS

int lottie.objects.properties.KeyframeBezier.SUBDIVISION_MAX_ITERATIONS = 10
static

Definition at line 14 of file properties.py.

◆ SUBDIVISION_PRECISION

float lottie.objects.properties.KeyframeBezier.SUBDIVISION_PRECISION = 0.0000001
static

Definition at line 13 of file properties.py.


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