2020-02-03 20:08:40 +01:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# Split clock.png into digits
|
|
|
|
for i in `seq 9`
|
|
|
|
do
|
|
|
|
convert clock.png -crop 48x60+$((i*48 - 48))+0 clock_$i.png
|
|
|
|
done
|
|
|
|
convert clock.png -crop 48x60+$((9*48))+0 clock_0.png
|
|
|
|
convert clock.png -crop 48x60+$((11*48))+0 clock_colon.png
|
|
|
|
|
2021-03-03 21:41:11 +01:00
|
|
|
for i in `seq 9`
|
|
|
|
do
|
|
|
|
convert clock_dual.png -crop 72x90+$((i*72 - 72))+0 clock_dual_$i.png
|
|
|
|
done
|
|
|
|
convert clock_dual.png -crop 72x90+$((9*72))+0 clock_dual_0.png
|
2020-02-03 20:08:40 +01:00
|
|
|
# Encode the clock digits
|