gigantic refactoring, part one

This commit is contained in:
Tonton Th
2025-01-12 02:33:39 +01:00
parent 5d34aac50c
commit 273312e7c5
17 changed files with 275 additions and 163 deletions

View File

@@ -7,6 +7,8 @@ SPOOL="frames/Spool"
SEQNAME="none"
TMP="WS/tmp.png"
FONTE="Palatino-Bold"
TEXTCOL="orange"
STROKOL="darkblue"
source tools/fonctions.sh
@@ -51,27 +53,30 @@ faire_le_titre ()
{
echo "faire le titre"
local NBRE=190
local NBRE=180
for foo in $(seq 0 $NBRE)
do
Ypos=$(( 210 - ( foo / 2 ) ))
convert "WS/negatif.png" \
-gravity north \
-font $FONTE \
-pointsize 172 \
-fill black \
-strokewidth 2 -stroke gray90 \
Ypos=$(( 210 - ( foo / 3 ) ))
convert "WS/negatif.png" \
-gravity north \
-font $FONTE \
-pointsize 172 \
-kerning 6 \
-fill $TEXTCOL \
-strokewidth 3 -stroke $STROKOL \
-annotate +0+${Ypos} "HexaCone" \
${TMP}
# identify ${TMP}
addfile ${TMP}
printf "."
done
echo
}
# -------------------------------------------------------
faire_la_fin ()
{
local NBRE=120
datetime=$(LANG=fr date -u)
local NBRE=150
datetime=$(LANG=fr date -u +"%Y/%M/%D")
echo $datetime | tee -a WS/log
for foo in $(seq 0 $NBRE)
@@ -81,23 +86,26 @@ do
-gravity north \
-font $FONTE \
-pointsize 86 \
-fill Black \
-strokewidth 2 -stroke gray90 \
-kerning 6 \
-fill $TEXTCOL \
-strokewidth 2 -stroke $STROKOL \
-annotate +0+${Ypos} "tTh des Bourtoulots" \
-pointsize 48 \
-strokewidth 1 \
-gravity south \
-annotate +0+170 "${datetime}" \
-annotate +0+270 "${datetime}" \
${TMP}
# identify ${TMP}
addfile ${TMP}
printf "."
done
echo
}
# -------------------------------------------------------
figlet "Link farmer"
rm frames/Spool/*.png
rm -f frames/Spool/*.png
tools/plot-timing.sh
faire_le_titre
@@ -109,13 +117,15 @@ linkfarm passage
linkfarm scene
linkfarm orbite
# linkfarm essai
linkfarm essai
tools/plot-timing.sh
faire_la_fin
ff_encodage Spool full.mp4
echo "linkfarmed $IDX files" | tee -a WS/log