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 circle = layer.add_shape(objects.Ellipse()) 0019 circle.size.value = Point(100, 100) 0020 circle.position.value = Point(220, 110) 0021 0022 star = layer.add_shape(objects.Star()) 0023 star.inner_radius.value = 20 0024 star.outer_radius.value = 50 0025 star.position.value = Point(330, 110) 0026 0027 rect = layer.add_shape(objects.Rect()) 0028 rect.size.value = Point(100, 100) 0029 rect.position.value = Point(110, 110) 0030 0031 0032 rrect = layer.add_shape(objects.Rect()) 0033 rrect.size.value = Point(100, 100) 0034 rrect.position.value = Point(110, 220) 0035 rrect.rounded.value = 30 0036 0037 fill = layer.add_shape(objects.Fill(Color(1, 1, 0))) 0038 stroke = layer.add_shape(objects.Stroke(Color(0, 0, 0), 25)) 0039 0040 0041 script.script_main(an)