python-lottie 0.7.1+dev23f1ddd
A framework to work with lottie files and telegram animated stickers (tgs)
Loading...
Searching...
No Matches
lottie.parsers.svg.importer Namespace Reference

Classes

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

Functions

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

Variables

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

Function Documentation

◆ parse_color()

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()

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

Definition at line 1323 of file importer.py.

◆ parse_svg_file()

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

Definition at line 1328 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

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

Definition at line 19 of file importer.py.