From f926198af74d326218e1d76957877b6ec3038c2f Mon Sep 17 00:00:00 2001 From: St33v Date: Thu, 30 Jul 2026 12:20:44 +1000 Subject: Flip glyph direction to left-to-right, triple its size Progress glyph was backwards and too small to read comfortably. Co-Authored-By: Claude Sonnet 5 --- synopticMorph.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'synopticMorph.sh') diff --git a/synopticMorph.sh b/synopticMorph.sh index 22749f4..a05e307 100644 --- a/synopticMorph.sh +++ b/synopticMorph.sh @@ -24,7 +24,7 @@ DWELL="${DWELL:-36}" FADE_IN="${FADE_IN:-1}" FADE_OUT="${FADE_OUT:-2}" GLYPH_FONT="${GLYPH_FONT:-/usr/share/fonts/TTF/DejaVuSans.ttf}" -GLYPH_SIZE="${GLYPH_SIZE:-28}" +GLYPH_SIZE="${GLYPH_SIZE:-84}" require_cmd() { command -v "$1" >/dev/null 2>&1 || { echo "Required: $1" >&2; exit 127; } @@ -128,10 +128,10 @@ fout=$(awk "BEGIN{printf \"%.3f\", $out/$FPS - $FADE_OUT}") echo "Sequence: $out frames = ${dur}s at ${FPS} fps; fade-out ${FADE_OUT}s from ${fout}s" # --- 6. Encode ---------------------------------------------------------- -# Progress glyph: a cloud drifts right-to-left across the top of the frame, -# x mapped linearly to elapsed video time (0 at right edge, dur at left edge), +# Progress glyph: a cloud drifts left-to-right across the top of the frame, +# x mapped linearly to elapsed video time (0 at left edge, dur at right edge), # so it visibly pauses during linger/dwell holds rather than skipping ahead. -GLYPH="drawtext=fontfile=$GLYPH_FONT:text='☁':fontsize=$GLYPH_SIZE:fontcolor=white@0.9:borderw=2:bordercolor=black@0.6:x=(w-tw)*(1-t/$dur):y=h*0.07" +GLYPH="drawtext=fontfile=$GLYPH_FONT:text='☁':fontsize=$GLYPH_SIZE:fontcolor=white@0.9:borderw=2:bordercolor=black@0.6:x=(w-tw)*(t/$dur):y=h*0.07" TMP_MP4=$(mktemp "$OUT_DIR/morph.XXXXXX.mp4") ffmpeg -y -hide_banner -loglevel error -framerate "$FPS" \ -- cgit v1.3.1