python-lottie  0.6.10+dev42a5126
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:
Collaboration diagram for lottie.objects.helpers.Mask:

Public Member Functions

def __init__ (self, bezier=None)
def __str__ (self)
- Public Member Functions inherited from lottie.objects.helpers.VisualObject
def __init__ (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...
def clone_into (self, other)
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)

Public Attributes

 Inverted Mask flag. More...
 Mask vertices. More...
 Mask opacity. More...
 Mask mode. More...
- Public Attributes inherited from lottie.objects.helpers.VisualObject

Detailed Description

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

Definition at line 116 of file

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 125 of file

Member Function Documentation

◆ __str__()

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

Reimplemented from lottie.objects.base.LottieObject.

Definition at line 137 of file

Member Data Documentation

◆ dilate


Definition at line 135 of file

◆ inverted


Inverted Mask flag.

Definition at line 128 of file

◆ mode


Mask mode.

Not all mask types are supported.

Definition at line 134 of file

◆ opacity


Mask opacity.

Definition at line 132 of file

◆ shape


Mask vertices.

Definition at line 130 of file

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