# test_animation.py from ilda.animation import Animation import sys SVG_FOLDER = "animation" OUT_ILDA = "rgb-anim.ild" SIMPLIFY = True TOL = 3.0 # simplify ratio # ----------------------------- def main() -> None: anim = Animation(ilda_format=0, company_name="MIKLO", projector=0) print(f"Reading SVGs from: {SVG_FOLDER}") anim.create_from_folder(SVG_FOLDER, simplify=SIMPLIFY, tol=TOL) print(f"Loaded {len(anim.frames)} frames; writing ILDA to: {OUT_ILDA}") anim.write_ild(OUT_ILDA) print("Done.") if __name__ == "__main__": main()