python-lottie  0.6.10+dev42a5126
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.shapes.BaseStroke Class Reference
Inheritance diagram for lottie.objects.shapes.BaseStroke:
Collaboration diagram for lottie.objects.shapes.BaseStroke:

Public Member Functions

def __init__ (self, width=1)
- Public Member Functions inherited from lottie.objects.base.LottieObject
def __init__ (self)
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)
def __str__ (self)
- Public Member Functions inherited from lottie.objects.base.LottieObjectMeta
def __new__ (cls, name, bases, attr)

Public Attributes

 Stroke Line Cap. More...
 Stroke Line Join. More...
 Stroke Miter Limit. More...
 Stroke Opacity. More...
 Stroke Width. More...
 Dashes. More...

Detailed Description

Lottie JSON
Lottie name Type Description Attribute
lc LineCap Stroke Line Cap.   line_cap
lj LineJoin Stroke Line Join.   line_join
ml float Stroke Miter Limit.   miter_limit
o Value Stroke Opacity.   opacity
w Value Stroke Width.   width
d list of StrokeDash Dashes.   dashes

Definition at line 622 of file

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.shapes.BaseStroke.__init__ (   self,
  width = 1 

Reimplemented in lottie.objects.shapes.GradientStroke.

Definition at line 632 of file

Member Data Documentation

◆ dashes



Definition at line 644 of file

◆ line_cap


Stroke Line Cap.

Definition at line 634 of file

◆ line_join


Stroke Line Join.

Definition at line 636 of file

◆ miter_limit


Stroke Miter Limit.

Only if Line Join is set to Miter.

Definition at line 638 of file

◆ opacity


Stroke Opacity.

Definition at line 640 of file

◆ width


Stroke Width.

Definition at line 642 of file

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