diff options
| author | St33v <github@f3rr3t.com> | 2026-07-30 12:20:44 +1000 |
|---|---|---|
| committer | St33v <github@f3rr3t.com> | 2026-07-30 12:20:44 +1000 |
| commit | f926198af74d326218e1d76957877b6ec3038c2f (patch) | |
| tree | f63364c3c5ec0f694a4f49d0cc4d838af214249b /synopticMorph.sh | |
| parent | d9ae5bc0f61d777ff72d3f830a34775ebfc60632 (diff) | |
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 <noreply@anthropic.com>
Diffstat (limited to 'synopticMorph.sh')
| -rw-r--r-- | synopticMorph.sh | 8 |
1 files changed, 4 insertions, 4 deletions
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" \ |
