spriteforge/tests/make_palette_fixture.py

6 lines
232 B
Python
Raw Permalink Normal View History

from pathlib import Path
import sys
sys.path.insert(0,str(Path(__file__).parents[1]/"src"))
from spriteforge.palette import write_sfp
write_sfp(Path(sys.argv[1]),{"gray":[(i,i,i) for i in range(256)]},{"identity":list(range(256))})