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

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 image_filename = os.path.join(
0014     os.path.dirname(os.path.abspath(__file__)),
0015     "blep.png"
0016 )
0017 
0018 last_frame = 60
0019 an = objects.Animation(last_frame)
0020 
0021 image = objects.assets.Image().load(image_filename)
0022 an.assets.append(image)
0023 
0024 an.add_layer(objects.ImageLayer(image.id))
0025 
0026 script.script_main(an)