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

Classes

class  PathDParser
 
class  SvgDefsParent
 
class  SvgGradient
 
class  SvgGradientCoord
 
class  SvgLinearGradient
 
class  SvgParser
 
class  SvgRadialGradient
 

Functions

def parse_color (color, current_color=Color(0, 0, 0, 1))
 Parses CSS colors. More...
 
def parse_svg_etree (etree, layer_frames=0, *args, **kwargs)
 
def parse_svg_file (file, layer_frames=0, *args, **kwargs)
 

Variables

bool has_font = True
 
dictionary nocolor = {"none"}
 

Function Documentation

◆ parse_color()

def lottie.parsers.svg.importer.parse_color (   color,
  current_color = Color(0, 0, 0, 1) 
)

Parses CSS colors.

See also
https://www.w3.org/wiki/CSS/Properties/color

Definition at line 134 of file importer.py.

◆ parse_svg_etree()

def lottie.parsers.svg.importer.parse_svg_etree (   etree,
  layer_frames = 0,
args,
**  kwargs 
)

Definition at line 1305 of file importer.py.

◆ parse_svg_file()

def lottie.parsers.svg.importer.parse_svg_file (   file,
  layer_frames = 0,
args,
**  kwargs 
)

Definition at line 1310 of file importer.py.

Variable Documentation

◆ has_font

bool lottie.parsers.svg.importer.has_font = True

Definition at line 15 of file importer.py.

◆ nocolor

dictionary lottie.parsers.svg.importer.nocolor = {"none"}

Definition at line 19 of file importer.py.