forked from whosit/waypoint_compass
10 lines
374 B
Bash
10 lines
374 B
Bash
input="compass_arrow.svg"
|
|
size=64
|
|
angles=9
|
|
for rot in `seq 0 $((angles - 1))`; do
|
|
#inkscape -w ${size} -h ${size} compass_arrow.svg -o "$out"
|
|
angle=$((90 / angles * rot))
|
|
out="textures/waypoint_compass_arrow_"$(printf "%03d" $angle)".png"
|
|
convert -density 384 -background none -distort SRT $angle -gravity center -resize ${size}x${size} "$input" "$out"
|
|
done
|