- .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
18 lines
310 B
Plaintext
18 lines
310 B
Plaintext
# A small gold coin, 8x8.
|
|
# '.' is transparent by default and never needs a palette entry.
|
|
sprite: coin
|
|
palette:
|
|
k = #1A1205 dark outline
|
|
y = #FFD700 gold
|
|
Y = #FFF3A0 highlight
|
|
s = #B8860B shadow
|
|
grid:
|
|
..kkkk..
|
|
.kyyyYk.
|
|
kyyyYYsk
|
|
kyyYyysk
|
|
kyYyyysk
|
|
kYyyyssk
|
|
.kysssk.
|
|
..kkkk..
|