8 SUBUNITS
="4.9 3.5 2.5 1.5 1"
9 SUBUNITS_N
=$
(wc -w <<EOF
14 ANIMATION_DURATION
=10 # must match that in chryzantem.html.template
15 ANIMATION_DELAY
=$
(bc <<EOF
16 2 + $SUBUNITS_N * $IN_ROW * $DELAY_BETWEEN
23 <div style="--subunit: $SUBUNIT; --end-deg: -${END_DEG}deg; animation-delay: ${ANIMATION_DELAY}s;">
24 <img src="./petal.svg" alt="flower petal" draggable="false">
31 for SUBUNIT
in $SUBUNITS; do
34 if [ $I -eq $SUBUNITS_N ]; then
35 bc >_inner_row_delay
<<EOF
41 bc >_flower_delay
<<EOF
42 $ANIMATION_DELAY + 10 - $DELAY_BETWEEN
46 for _
in $
(seq $IN_ROW); do
48 END_DEG
=$
((END_DEG
+ DEG_BETWEEN
))
49 ANIMATION_DELAY
=$
(bc <<EOF
50 $ANIMATION_DELAY - $DELAY_BETWEEN
55 END_DEG
=$
((END_DEG
+ DEG_BETWEEN
/ 2))