python-lottie  0.6.11+devcecd248
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.parsers.sif.builder Namespace Reference

Classes

class  SifBuilder
 

Functions

def to_sif (animation)
 

Variables

dictionary blend_modes
 

Function Documentation

◆ to_sif()

def lottie.parsers.sif.builder.to_sif (   animation)

Definition at line 408 of file builder.py.

Variable Documentation

◆ blend_modes

dictionary lottie.parsers.sif.builder.blend_modes
Initial value:
1 = {
2  objects.BlendMode.Normal: api.BlendMethod.Composite,
3  objects.BlendMode.Multiply: api.BlendMethod.Multiply,
4  objects.BlendMode.Screen: api.BlendMethod.Screen,
5  objects.BlendMode.Overlay: api.BlendMethod.Overlay,
6  objects.BlendMode.Darken: api.BlendMethod.Darken,
7  objects.BlendMode.Lighten: api.BlendMethod.Lighten,
8  objects.BlendMode.HardLight: api.BlendMethod.HardLight,
9  objects.BlendMode.Difference: api.BlendMethod.Difference,
10  objects.BlendMode.Hue: api.BlendMethod.Hue,
11  objects.BlendMode.Saturation: api.BlendMethod.Saturation,
12  objects.BlendMode.Color: api.BlendMethod.Color,
13  objects.BlendMode.Luminosity: api.BlendMethod.Luminosity,
14  objects.BlendMode.Exclusion: api.BlendMethod.Difference,
15  objects.BlendMode.SoftLight: api.BlendMethod.Multiply,
16  objects.BlendMode.ColorDodge: api.BlendMethod.Composite,
17  objects.BlendMode.ColorBurn: api.BlendMethod.Composite,
18 }

Definition at line 10 of file builder.py.