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

Star shape. More...

Inheritance diagram for lottie.objects.shapes.Star:
Collaboration diagram for lottie.objects.shapes.Star:

Public Member Functions

def __init__ (self)
def bounding_box (self, time=0)
 Bounding box of the shape element at the given time. More...
def to_bezier (self)
 Returns a Shape corresponding to this star. More...
- Public Member Functions inherited from lottie.objects.shapes.ShapeElement
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

 Star's position. More...
 Star's inner radius. More...
 Star's inner roundness. More...
 Star's outer radius. More...
 Star's outer roundness. More...
 Star's rotation. More...
 Star's number of points. More...
 Star's type. More...
- Public Attributes inherited from lottie.objects.shapes.Shape
 After Effect's Direction. More...
- Public Attributes inherited from lottie.objects.shapes.ShapeElement
 Property index. More...
 Hide element. More...
 Blend mode. More...
- Public Attributes inherited from lottie.objects.helpers.VisualObject

Static Public Attributes

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

Detailed Description

Star shape.

Lottie JSON
Lottie name Type Description Attribute
nm str   name
mn str   match_name
hd bool Hide element.   hidden
ty str = 'sr' Shape type.   type
cix int Property index.   property_index
bm BlendMode Blend mode.   blend_mode
d ShapeDirection After Effect's Direction.   direction
p PositionValue Star's position.   position
ir Value Star's inner radius.   inner_radius
is Value Star's inner roundness.   inner_roundness
or Value Star's outer radius.   outer_radius
os Value Star's outer roundness.   outer_roundness
r Value Star's rotation.   rotation
pt Value Star's number of points.   points
sy StarType Star's type.   star_type

Definition at line 239 of file

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from lottie.objects.shapes.Shape.

Definition at line 256 of file

Member Function Documentation

◆ bounding_box()

def lottie.objects.shapes.Star.bounding_box (   self,
  time = 0 

Bounding box of the shape element at the given time.

Reimplemented from lottie.objects.shapes.ShapeElement.

Definition at line 275 of file

◆ to_bezier()

def lottie.objects.shapes.Star.to_bezier (   self)

Returns a Shape corresponding to this star.

Reimplemented from lottie.objects.shapes.Shape.

Definition at line 286 of file

Member Data Documentation

◆ inner_radius


Star's inner radius.

(Star only)

Definition at line 261 of file

◆ inner_roundness


Star's inner roundness.

(Star only)

Definition at line 263 of file

◆ outer_radius


Star's outer radius.

Definition at line 265 of file

◆ outer_roundness


Star's outer roundness.

Definition at line 267 of file

◆ points


Star's number of points.

Definition at line 271 of file

◆ position


Star's position.

Definition at line 259 of file

◆ rotation


Star's rotation.

Definition at line 269 of file

◆ star_type


Star's type.

Polygon or Star.

Definition at line 273 of file

◆ type

string lottie.objects.shapes.Star.type = "sr"

Shape type.

Definition at line 254 of file

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