File indexing completed on 2025-01-19 04:00:01

0001 #!/usr/bin/env python3
0002 import sys
0003 import os
0004 sys.path.insert(0, os.path.join(
0005     os.path.dirname(os.path.dirname(os.path.abspath(__file__))),
0006     "lib"
0007 ))
0008 from lottie.utils import script
0009 from lottie import objects
0010 from lottie import Point, Color
0011 
0012 
0013 an = objects.Animation(59)
0014 
0015 layer = objects.ShapeLayer()
0016 an.add_layer(layer)
0017 
0018 group = layer.add_shape(objects.Group())
0019 
0020 star = group.add_shape(objects.Star())
0021 star.inner_radius.value = 20
0022 star.outer_radius.value = 50
0023 star.position.value = Point(91, 91)
0024 
0025 fill = group.add_shape(objects.Fill(Color(1, 1, 0)))
0026 stroke = group.add_shape(objects.Stroke(Color(0, 0, 0), 5))
0027 
0028 repeater = layer.add_shape(objects.Repeater(4))
0029 repeater.transform.position.value.x = 110
0030 repeater.transform.end_opacity.value = 20
0031 
0032 repeater1 = layer.add_shape(objects.Repeater(4))
0033 repeater1.transform.position.value = Point(0, 110)
0034 repeater1.transform.end_opacity.value = 20
0035 
0036 script.script_main(an)
0037