python-lottie  0.6.10+dev2509936
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:
[legend]
Collaboration diagram for lottie.objects.shapes.Star:
[legend]

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

 position
 Star's position. More...
 
 inner_radius
 Star's inner radius. More...
 
 inner_roundness
 Star's inner roundness. More...
 
 outer_radius
 Star's outer radius. More...
 
 outer_roundness
 Star's outer roundness. More...
 
 rotation
 Star's rotation. More...
 
 points
 Star's number of points. More...
 
 star_type
 Star's type. More...
 
- Public Attributes inherited from lottie.objects.shapes.Shape
 direction
 After Effect's Direction. More...
 
- Public Attributes inherited from lottie.objects.shapes.ShapeElement
 property_index
 Property index. More...
 
 hidden
 Hide element. More...
 
 bm
 
- Public Attributes inherited from lottie.objects.helpers.VisualObject
 name
 
 match_name
 

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 int   bm
d float After Effect's Direction.   direction
p MultiDimensional 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 231 of file shapes.py.

Constructor & Destructor Documentation

◆ __init__()

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

Reimplemented from lottie.objects.shapes.Shape.

Definition at line 248 of file shapes.py.

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 267 of file shapes.py.

◆ 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 278 of file shapes.py.

Member Data Documentation

◆ inner_radius

lottie.objects.shapes.Star.inner_radius

Star's inner radius.

(Star only)

Definition at line 253 of file shapes.py.

◆ inner_roundness

lottie.objects.shapes.Star.inner_roundness

Star's inner roundness.

(Star only)

Definition at line 255 of file shapes.py.

◆ outer_radius

lottie.objects.shapes.Star.outer_radius

Star's outer radius.

Definition at line 257 of file shapes.py.

◆ outer_roundness

lottie.objects.shapes.Star.outer_roundness

Star's outer roundness.

Definition at line 259 of file shapes.py.

◆ points

lottie.objects.shapes.Star.points

Star's number of points.

Definition at line 263 of file shapes.py.

◆ position

lottie.objects.shapes.Star.position

Star's position.

Definition at line 251 of file shapes.py.

◆ rotation

lottie.objects.shapes.Star.rotation

Star's rotation.

Definition at line 261 of file shapes.py.

◆ star_type

lottie.objects.shapes.Star.star_type

Star's type.

Polygon or Star.

Definition at line 265 of file shapes.py.

◆ type

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

Shape type.

Definition at line 246 of file shapes.py.


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