python-lottie  0.7.0+dev66cafb9
A framework to work with lottie files and telegram animated stickers (tgs)
lottie.objects.shapes.Stroke Class Reference

Solid stroke. More...

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

Public Member Functions

def __init__ (self, color=None, width=1)
 
- Public Member Functions inherited from lottie.objects.shapes.ShapeElement
def __init__ (self)
 
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 Member Functions inherited from lottie.objects.shapes.BaseStroke
def __init__ (self, width=1)
 

Public Attributes

 color
 Stroke Color. More...
 
- Public Attributes inherited from lottie.objects.shapes.ShapeElement
 property_index
 Property index. More...
 
 hidden
 Hide element. More...
 
 blend_mode
 Blend mode. More...
 
 css_class
 CSS class used by the SVG renderer. More...
 
 layer_xml_id
 id attribute used by the SVG renderer More...
 
- Public Attributes inherited from lottie.objects.helpers.VisualObject
 name
 
 match_name
 
- Public Attributes inherited from lottie.objects.shapes.BaseStroke
 line_cap
 Stroke Line Cap. More...
 
 line_join
 Stroke Line Join. More...
 
 miter_limit
 Stroke Miter Limit. More...
 
 animated_miter_limit
 Animatable alternative to ml. More...
 
 opacity
 Stroke Opacity. More...
 
 width
 Stroke Width. More...
 
 dashes
 Dashes. More...
 

Static Public Attributes

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

Detailed Description

Solid stroke.

Lottie JSON
Lottie name Type Description Attribute
nm str   name
mn str   match_name
hd bool Hide element.   hidden
ty str = 'st' Shape type.   type
bm BlendMode Blend mode.   blend_mode
ix int Property index.   property_index
cl str CSS class used by the SVG renderer.   css_class
ln str id attribute used by the SVG renderer   layer_xml_id
lc LineCap Stroke Line Cap.   line_cap
lj LineJoin Stroke Line Join.   line_join
ml float Stroke Miter Limit.   miter_limit
ml2 Value Animatable alternative to ml.   animated_miter_limit
o Value Stroke Opacity.   opacity
w Value Stroke Width.   width
d list of StrokeDash Dashes.   dashes
c ColorValue Stroke Color.   color

Definition at line 656 of file shapes.py.

Constructor & Destructor Documentation

◆ __init__()

def lottie.objects.shapes.Stroke.__init__ (   self,
  color = None,
  width = 1 
)

Definition at line 666 of file shapes.py.

Member Data Documentation

◆ color

lottie.objects.shapes.Stroke.color

Stroke Color.

Definition at line 670 of file shapes.py.

◆ type

string lottie.objects.shapes.Stroke.type = "st"
static

Shape type.

Definition at line 664 of file shapes.py.


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