From bb221e50724873b55c4d76a74136368c24f9ba16 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 7 Dec 2025 14:59:30 +0000 Subject: [PATCH] add helper scripts --- generate.sh | 5 +++++ make-svg.sh | 17 +++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100755 generate.sh create mode 100755 make-svg.sh diff --git a/generate.sh b/generate.sh new file mode 100755 index 0000000..753c0e4 --- /dev/null +++ b/generate.sh @@ -0,0 +1,5 @@ +for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 +do + ./make-svg.sh $i + ffmpeg -i $i.svg -vf "scale=800:600" -pix_fmt argb -r 30 -f rawvideo $i.dat +done diff --git a/make-svg.sh b/make-svg.sh new file mode 100755 index 0000000..c6b3247 --- /dev/null +++ b/make-svg.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# usage: ./make-svg.sh 123 → creates 123.svg in the current directory + +NUM=$1 # the number (or any text) you want inside the SVG +OUT="${NUM}.svg" # name the file after the number (change if you wish) + +# --- 1️⃣ Write the SVG XML directly ------------------------------------------------ +printf '%s\n' \ +'' \ +'' \ +' ' \ +' ' \ +"$NUM" \ +' ' \ +'' > "$OUT" + +echo "✅ SVG written to $OUT"