python-lottie  0.6.10+dev2509936
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.parsers.pixel Namespace Reference

Classes

class  Polygen
 

Functions

def pixel_add_layer_paths (animation, raster)
 
def pixel_add_layer_rects (animation, raster)
 
def raster_to_embedded_assets (filenames, frame_delay=1, framerate=60, embed_format=None)
 Loads external assets. More...
 
def raster_to_linked_assets (filenames, frame_delay=1, framerate=60)
 Loads external assets. More...
 
def pixel_to_animation (filenames, frame_delay=1, framerate=60)
 Converts pixel art to vector. More...
 
def pixel_to_animation_paths (filenames, frame_delay=1, framerate=60)
 Converts pixel art to vector paths. More...
 

Function Documentation

◆ pixel_add_layer_paths()

def lottie.parsers.pixel.pixel_add_layer_paths (   animation,
  raster 
)

Definition at line 74 of file pixel.py.

◆ pixel_add_layer_rects()

def lottie.parsers.pixel.pixel_add_layer_rects (   animation,
  raster 
)

Definition at line 131 of file pixel.py.

◆ pixel_to_animation()

def lottie.parsers.pixel.pixel_to_animation (   filenames,
  frame_delay = 1,
  framerate = 60 
)

Converts pixel art to vector.

Definition at line 250 of file pixel.py.

◆ pixel_to_animation_paths()

def lottie.parsers.pixel.pixel_to_animation_paths (   filenames,
  frame_delay = 1,
  framerate = 60 
)

Converts pixel art to vector paths.

Slower and yields larger files compared to pixel_to_animation, but it produces a single shape for each area with the same color. Mostly useful when you want to add your own animations to the loaded image

Definition at line 262 of file pixel.py.

◆ raster_to_embedded_assets()

def lottie.parsers.pixel.raster_to_embedded_assets (   filenames,
  frame_delay = 1,
  framerate = 60,
  embed_format = None 
)

Loads external assets.

Definition at line 220 of file pixel.py.

◆ raster_to_linked_assets()

def lottie.parsers.pixel.raster_to_linked_assets (   filenames,
  frame_delay = 1,
  framerate = 60 
)

Loads external assets.

Definition at line 234 of file pixel.py.