💾 Archived View for heavysquare.com › visuals › 0112-dune.txt captured on 2022-06-11 at 20:53:59.

View Raw

More Information

⬅️ Previous capture (2021-12-03)

-=-=-=-=-=-=-

(executable
 (name drip)
 (libraries core imagelib imagelib.unix)
 (preprocess (pps ppx_jane)))

(rule
  (targets init.exe)
  (deps init.c)
  (action (run gcc -I/usr/include/cairo -I/usr/include/lzo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/pixman-1 -lcairo -o %{targets} %{deps})))

(rule
  (targets v01.png v02.png v03.png v04.png v05.png v06.png v07.png v08.png v09.png v10.png v11.png v12.png v13.png v14.png v15.png)
  (deps init.exe)
  (action (pipe-outputs
            (run seq -w 1 15)
            (run xargs -n1 ./init.exe))))

(rule
  (targets tile.ppm)
  (deps v01.png v02.png v03.png v04.png v05.png v06.png v07.png v08.png v09.png v10.png v11.png v12.png v13.png v14.png v15.png)
  (action
      (run ffmpeg  -i v01.png -i v02.png -i v03.png -i v04.png -i v05.png -i v06.png -i v07.png -i v08.png -i v09.png -i v10.png -i v11.png -i v12.png -i v13.png -i v14.png -i v15.png
           -filter_complex "concat=n=15:v=1:a=0,tile=5x3,scale=w=iw/2:h=ih/2,hue=h=180:s=10,vignette=mode=backward"  -vframes 1 -y %{targets})))

(rule
  (targets iter1.ppm)
  (deps tile.ppm drip.exe)
  (action
    (run ./drip.exe weigert tile.ppm -distance 100 -traverse Columns -join-norm Euclidean -out iter1.ppm)))

(rule
  (targets iter2.ppm)
  (deps iter1.ppm drip.exe)
  (action
    (run ./drip.exe weigert iter1.ppm -distance 340 -traverse Rows -join-norm One -pivot-corner South_west -out iter2.ppm)))

(rule
  (targets final.jpg)
  (deps iter2.ppm)
  (action
    (run ffmpeg -i iter2.ppm -vf negate,hflip,vflip final.jpg)))