Quick belts, script
Posted: Thu Nov 15, 2018 9:41 pm
by darkfrei
There is a tool for quick creation of belts.
Just set up your 32x32 pixels (only) and start the script 01-belt.bat
Or you can download ImageMagick and just make the same by the script:
to
Script was created for PXL.
Special thanks to GeeMack for his help.
Just set up your 32x32 pixels (only) and start the script 01-belt.bat
Or you can download ImageMagick and just make the same by the script:
code
From
Code: Select all
magick source/*.png -duplicate 31 -roll +%%[fx:t]+0 -append +repage temp/01-spritesheet.png
magick convert temp/01-spritesheet.png -crop 32x32 +repage +adjoin "temp/02-belt-h_%%04d.png"
magick montage temp/02-belt*.png -geometry +0+0 -tile 1x32 -background rgba(0,0,0,0) -quality 100% temp/03-belt-spritesheet-h.png
magick temp/02-belt*.png -background none -rotate -90 temp/04-belt-v_%%04d.png
magick montage temp/04-belt*.png -geometry +0+0 -tile 32x1 -background rgba(0,0,0,0) -quality 100% temp/05-belt-spritesheet-v.png
magick temp/04-belt*.png -crop 32x32+0+24 -background none ^
-extent 32x32+0-24 "temp/06-belt-cropped_%%04d.png"
magick montage temp/02-belt-h*.png -geometry +0+0 ^
-tile 32x1 -background rgba(0,0,0,0) -quality 100% ^
temp/belt-line-01.png
magick montage temp/04-belt-v*.png -geometry +0+0 ^
-tile 32x1 -background rgba(0,0,0,0) -quality 100% ^
temp/belt-line-02.png
magick montage temp/06-belt-cropped*.png -geometry +0+0 -tile 32x1 -background rgba(0,0,0,0) -quality 100% ^
temp/belt-line-03.png
magick temp/belt-line-03.png -background none -flip ^
temp/belt-line-04.png
magick temp/06-belt-cropped*.png -rotate 90 ^
temp/07-belt-rotated-%%04d.png
magick montage temp/07-belt-rotated*.png -geometry +0+0 -tile 32x1 -background rgba(0,0,0,0) -quality 100% ^
temp/belt-line-05.png
magick temp/04-belt*.png -crop 32x8+0+0 -background none ^
-extent 32x32+0+0 "temp/08-belt-cropped_%%04d.png"
magick montage temp/08-belt-cropped*.png -geometry +0+0 -tile 32x1 -background rgba(0,0,0,0) -quality 100% ^
temp/belt-line-07.png
magick temp/belt-line-07.png -background none -flip ^
temp/belt-line-06.png
magick temp/08-belt-cropped*.png -rotate 90 ^
temp/09-belt-rotated-%%04d.png
magick montage temp/09-belt-rotated*.png -geometry +0+0 -tile 32x1 -background rgba(0,0,0,0) -quality 100% ^
temp/belt-line-08.png
magick temp/02-belt*.png -scale 1000%% -background none -virtual-pixel none ^
-distort arc "90 45 320 0" -shave 1 -scale 10%% temp/10-bended-%%04d.png
magick temp/10-bended-*.png -rotate -90 -rotate -90 temp/11-belt-a_%%04d.png
magick montage temp/11-belt-a*.png -geometry +0+0 ^
-tile 32x1 -background rgba(0,0,0,0) -quality 100% ^
temp/belt-line-09-a.png
magick temp/10-bended-*.png -rotate -90 -rotate -90 -rotate -90 -flop temp/11-belt-b_%%04d.png
magick montage temp/11-belt-b*.png -geometry +0+0 ^
-tile 32x1 -background rgba(0,0,0,0) -quality 100% ^
temp/belt-line-10-b.png
magick temp/10-bended-*.png temp/11-belt-c_%%04d.png
magick montage temp/11-belt-c*.png -geometry +0+0 ^
-tile 32x1 -background rgba(0,0,0,0) -quality 100% ^
temp/belt-line-10-c.png
magick temp/10-bended-*.png -rotate -90 temp/11-belt-d_%%04d.png
magick montage temp/11-belt-d*.png -geometry +0+0 ^
-tile 32x1 -background rgba(0,0,0,0) -quality 100% ^
temp/belt-line-10-d.png
magick montage "temp/belt-line-*.png" -geometry +0+0 -tile 1x -background rgba(0,0,0,0) -quality 100% animation.png
pause
- belt-3.png (305 Bytes) Viewed 2596 times
- animation.png (51.7 KiB) Viewed 2596 times
Special thanks to GeeMack for his help.