- .sprite format: single-char palette keys (hex/rgb()/CSS names/none), grid rows, '.' transparent by default, max 256x256 per sprite - render/sheet/info/preview subcommands; sheets name themselves <base>_<cellW>x<cellH>_<cols>x<rows>.<ext> (row-major) - SVG output RLE-merges pixel runs; JPG composites over --bg - go tests for parser, colors, scaling, svg, sheet layout Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MmdG9GqfSWCzts7AkDwRDh
26 lines
568 B
Plaintext
26 lines
568 B
Plaintext
# A 16x16 heart with shading, shows named colors and rgb().
|
|
sprite: heart
|
|
palette:
|
|
k = #2B0A10 outline
|
|
r = crimson main red
|
|
R = rgb(255, 90, 110) light red
|
|
d = #8B1A2B dark red
|
|
w = #FFFFFFCC semi-transparent shine
|
|
grid:
|
|
................
|
|
..kkk....kkk....
|
|
.krrRk..kRrrk...
|
|
krrRRrkkrRrrrk..
|
|
krRwRrrrrrrrdk..
|
|
krRwwRrrrrrrdk..
|
|
krRwRrrrrrrddk..
|
|
krrRrrrrrrrddk..
|
|
.krrrrrrrrrdk...
|
|
..krrrrrrrdk....
|
|
...krrrrrdk.....
|
|
....krrrdk......
|
|
.....krdk.......
|
|
......kk........
|
|
................
|
|
................
|