python-lottie  0.6.10+dev4166086
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.helpers.Mask Class Reference
Inheritance diagram for lottie.objects.helpers.Mask:
[legend]
Collaboration diagram for lottie.objects.helpers.Mask:
[legend]

Public Member Functions

def __init__ (self, bezier=None)
 
def __str__ (self)
 
- Public Member Functions inherited from lottie.objects.base.LottieObject
def to_dict (self)
 Serializes into a JSON object fit for the Lottie format. More...
 
def load (cls, lottiedict)
 Loads from a JSON object. More...
 
def find (self, search, propname="name")
 Recursively searches for child objects with a matching property. More...
 
def find_all (self, type, predicate=None, include_self=True)
 Find all child objects that match a predicate. More...
 
def clone (self)
 Returns a copy of the object. More...
 
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)
 

Public Attributes

 inverted
 Inverted Mask flag. More...
 
 name
 Mask name. More...
 
 shape
 Mask vertices. More...
 
 opacity
 Mask opacity. More...
 
 mode
 Mask mode. More...
 
 dilate
 

Detailed Description

Todo:
Implement SVG/SIF I/O
Lottie JSON
Lottie name Type Description Attribute
inv bool Inverted Mask flag.   inverted
nm str Mask name.   name
pt ShapeProperty Mask vertices.   shape
o Value Mask opacity.   opacity
mode MaskMode Mask mode.   mode
x Value   dilate

Definition at line 101 of file helpers.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.helpers.Mask.__init__ (   self,
  bezier = None 
)

Definition at line 111 of file helpers.py.

Member Function Documentation

◆ __str__()

def lottie.objects.helpers.Mask.__str__ (   self)

Reimplemented from lottie.objects.base.LottieObject.

Definition at line 124 of file helpers.py.

Member Data Documentation

◆ dilate

lottie.objects.helpers.Mask.dilate

Definition at line 122 of file helpers.py.

◆ inverted

lottie.objects.helpers.Mask.inverted

Inverted Mask flag.

Definition at line 113 of file helpers.py.

◆ mode

lottie.objects.helpers.Mask.mode

Mask mode.

Not all mask types are supported.

Definition at line 121 of file helpers.py.

◆ name

lottie.objects.helpers.Mask.name

Mask name.

Used for expressions and effects.

Definition at line 115 of file helpers.py.

◆ opacity

lottie.objects.helpers.Mask.opacity

Mask opacity.

Definition at line 119 of file helpers.py.

◆ shape

lottie.objects.helpers.Mask.shape

Mask vertices.

Definition at line 117 of file helpers.py.


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