python-lottie  0.6.11+devc144cca
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.shapes.ZigZag Class Reference

Changes the edges of affected shapes into a series of peaks and valleys of uniform size. More...

Inheritance diagram for lottie.objects.shapes.ZigZag:
[legend]
Collaboration diagram for lottie.objects.shapes.ZigZag:
[legend]

Public Member Functions

def __init__ (self)
 
- Public Member Functions inherited from lottie.objects.shapes.ShapeElement
def bounding_box (self, time=0)
 Bounding box of the shape element at the given time. More...
 
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...
 
def clone_into (self, other)
 
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)
 

Public Attributes

 roundness
 Radius to maked it a smoother curve. More...
 
 size
 Distance between peaks and troughs. More...
 
 points
 Number of ridges. More...
 
- Public Attributes inherited from lottie.objects.shapes.ShapeElement
 property_index
 Property index. More...
 
 hidden
 Hide element. More...
 
 blend_mode
 Blend mode. More...
 
- Public Attributes inherited from lottie.objects.helpers.VisualObject
 name
 
 match_name
 

Static Public Attributes

string type = "zz"
 Shape type. More...
 
- Static Public Attributes inherited from lottie.objects.shapes.ShapeElement
 type = None
 Shape type. More...
 

Detailed Description

Changes the edges of affected shapes into a series of peaks and valleys of uniform size.

Note
marked as unsupported by lottie
Lottie JSON
Lottie name Type Description Attribute
nm str   name
mn str   match_name
hd bool Hide element.   hidden
ty str = 'zz' Shape type.   type
cix int Property index.   property_index
bm BlendMode Blend mode.   blend_mode
ty str   shape_type
r Value Radius to maked it a smoother curve.   roundness
s Value Distance between peaks and troughs.   size
pt Value Number of ridges.   points

Definition at line 847 of file shapes.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.shapes.ZigZag.__init__ (   self)

Reimplemented from lottie.objects.shapes.ShapeElement.

Definition at line 860 of file shapes.py.

Member Data Documentation

◆ points

lottie.objects.shapes.ZigZag.points

Number of ridges.

Definition at line 868 of file shapes.py.

◆ roundness

lottie.objects.shapes.ZigZag.roundness

Radius to maked it a smoother curve.

Definition at line 864 of file shapes.py.

◆ size

lottie.objects.shapes.ZigZag.size

Distance between peaks and troughs.

Definition at line 866 of file shapes.py.

◆ type

string lottie.objects.shapes.ZigZag.type = "zz"
static

Shape type.

Definition at line 858 of file shapes.py.


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