python-lottie  0.7.0+dev66cafb9
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.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
 Inverted Mask flag. More...
 
 shape
 Mask vertices. More...
 
 opacity
 Mask opacity. More...
 
 mode
 Mask mode. More...
 
 dilate
 
- Public Attributes inherited from lottie.objects.helpers.VisualObject
 name
 
 match_name
 

Detailed Description

Todo:
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 helpers.py.

Constructor & Destructor Documentation

◆ __init__()

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

Definition at line 125 of file helpers.py.

Member Function Documentation

◆ __str__()

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

Reimplemented from lottie.objects.base.LottieObject.

Definition at line 137 of file helpers.py.

Member Data Documentation

◆ dilate

lottie.objects.helpers.Mask.dilate

Definition at line 135 of file helpers.py.

◆ inverted

lottie.objects.helpers.Mask.inverted

Inverted Mask flag.

Definition at line 128 of file helpers.py.

◆ mode

lottie.objects.helpers.Mask.mode

Mask mode.

Not all mask types are supported.

Definition at line 134 of file helpers.py.

◆ opacity

lottie.objects.helpers.Mask.opacity

Mask opacity.

Definition at line 132 of file helpers.py.

◆ shape

lottie.objects.helpers.Mask.shape

Mask vertices.

Definition at line 130 of file helpers.py.


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