2016-12-27 20:17:47 +00:00
|
|
|
|
|
|
|
%-pf.hex: %-pf.pbm p4_to_pfbytes.py
|
|
|
|
python p4_to_pfbytes.py $< > $@
|
|
|
|
|
|
|
|
%-48.hex: %-48.pbm p4_to_48pix.py
|
|
|
|
python p4_to_48pix.py $< > $@
|
|
|
|
|
|
|
|
%-pf.pbm: %.jpg
|
|
|
|
convert $< -resize 40x192\! -colorspace Gray -dither FloydSteinberg $@
|
|
|
|
|
|
|
|
%-48.pbm: %.jpg
|
|
|
|
convert $< -resize 48x192\! -colorspace Gray -dither FloydSteinberg $@
|
|
|
|
|
2017-03-28 16:22:33 +00:00
|
|
|
%.tga: %.png
|
2017-04-06 20:52:03 +00:00
|
|
|
convert $< -resize 192 $<.gif
|
2017-04-09 00:43:46 +00:00
|
|
|
convert $<.gif +dither -type palette -depth 4 -compress RLE -colors 8 -flip $@
|
2017-03-28 16:22:33 +00:00
|
|
|
convert $@ $@.png
|
|
|
|
|
|
|
|
%.pcx: %.png
|
|
|
|
convert $< -format raw -type palette -compress none -colors 15 +dither $@
|
2017-04-06 20:52:03 +00:00
|
|
|
%.rle.pcx: %.png
|
|
|
|
convert $< -format raw -type palette -compress rle -colors 15 +dither $@
|
2017-04-06 19:09:30 +00:00
|
|
|
%.4.pcx: %.png
|
|
|
|
convert $< -format raw -type palette -compress none -colors 4 +dither $@
|
2017-03-28 16:22:33 +00:00
|
|
|
|
2017-01-25 17:30:05 +00:00
|
|
|
ship1.pbm: ship1.png
|
2017-03-28 16:22:33 +00:00
|
|
|
convert ship1.png -negate -flop ship1.pbm
|
|
|
|
|
|
|
|
%.h:
|
|
|
|
cat $* | hexdump -v -e '"\n" 128/1 "0x%02x,"'
|
|
|
|
|
|
|
|
%.prom:
|
|
|
|
cat $* | hexdump -v -e '" \n defb " 32/1 "$$%02x,"' | cut -c 2-134
|
|
|
|
|
|
|
|
%.rot.pbm: %.pbm
|
|
|
|
convert $< -transpose -bordercolor white -border 4x4 $@
|
2017-04-04 18:19:47 +00:00
|
|
|
|
|
|
|
baddies-horiz.rot.pbm: baddies-horiz.png
|
|
|
|
convert $< +dither -brightness-contrast 50x50 -fill black -transpose -negate $@
|
|
|
|
convert $@ foo.png
|