python-lottie  0.6.8+dev6bb61be
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:
[legend]
Collaboration diagram for lottie.objects.shapes.BaseStroke:
[legend]

Public Member Functions

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

Public Attributes

 line_cap
 Stroke Line Cap. More...
 
 line_join
 Stroke Line Join. More...
 
 miter_limit
 Stroke Miter Limit. More...
 
 opacity
 Stroke Opacity. More...
 
 width
 Stroke Width. More...
 
 dashes
 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 620 of file shapes.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented in lottie.objects.shapes.GradientStroke.

Definition at line 630 of file shapes.py.

Member Data Documentation

◆ dashes

lottie.objects.shapes.BaseStroke.dashes

Dashes.

Definition at line 642 of file shapes.py.

◆ line_cap

lottie.objects.shapes.BaseStroke.line_cap

Stroke Line Cap.

Definition at line 632 of file shapes.py.

◆ line_join

lottie.objects.shapes.BaseStroke.line_join

Stroke Line Join.

Definition at line 634 of file shapes.py.

◆ miter_limit

lottie.objects.shapes.BaseStroke.miter_limit

Stroke Miter Limit.

Only if Line Join is set to Miter.

Definition at line 636 of file shapes.py.

◆ opacity

lottie.objects.shapes.BaseStroke.opacity

Stroke Opacity.

Definition at line 638 of file shapes.py.

◆ width

lottie.objects.shapes.BaseStroke.width

Stroke Width.

Definition at line 640 of file shapes.py.


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