from pathlib import Path import sys sys.path.insert(0,str(Path(__file__).parents[1]/"src")) from spriteforge.format import Frame,write_sfa out=Path(sys.argv[1]) f=Frame(bytes([0,1,1,0,2,2,2,0,0,3,0,0]),4,3,2,3,83, bytes([0,0]*12),bytes([0,1,2,0,4,5,6,0,0,9,0,0]),-1.0,1.0) write_sfa(out,[f],animation="idle")