--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/run.sh Tue Mar 12 06:43:54 2019 +0000
+ 'P3 2 2 1 0 0 0 1 0 0 1 0 0 0 0 0'
+ 'P3 2 2 1 1 0 0 0 0 0 0 0 0 1 0 0'
+ 'P3 2 2 1 0 0 0 0 1 0 0 1 0 0 0 0'
+ 'P3 2 2 1 0 1 0 0 0 0 0 0 0 0 1 0'
+ 'P3 2 2 1 0 0 0 0 0 1 0 0 1 0 0 0'
+ 'P3 2 2 1 0 0 1 0 0 0 0 0 0 0 0 1'
+for i in $(seq 0 $(("${#pats[@]}" - 1))); do
+ index=$(printf '%02d' "$i")
+ convert ppm:- -write mpr:tile +delete \
+ -size "$size" tile:mpr:tile "$index".png <<< "${pats[i]}"