Download:
0:4c142d12fd0f default tip
Anton Shestakov <engored@ya.ru>, Tue, 12 Mar 2019 06:43:54 +0000
(none)

1 файлов изменено, 28 вставок(+), 0 удалений(-) [+]
run.sh file | annotate | diff | comparison | revisions
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/run.sh Tue Mar 12 06:43:54 2019 +0000
@@ -0,0 +1,28 @@
+#!/bin/bash
+
+size=1920x1080
+pats=(
+ 'P3 1 1 1 1 0 0'
+ '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 1 1 1 0 1 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 1 1 1 0 0 1'
+ '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'
+
+ 'P3 1 1 1 1 1 1'
+ 'P3 1 1 2 1 1 1'
+ 'P3 1 1 1 0 0 0'
+)
+
+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]}"
+done
+
+feh -F