!/bin/sh

rand()

{

od -An -N2 -i /dev/urandom | tr -d ' '

}

printTree()

{

printf "\e[32m"

size=$1

for i in $(seq 1 2 "$size"); do

    for _ in $(seq "$size" -2 "$i"); do

        printf " "

    done

    for _ in $(seq 1 "$i"); do

        if [ $(($(rand) % 10)) = "0" ]; then

            printf "\e[3%dm0\e[32m" $(($(rand) % 8))

        else

            printf "*"

        fi

    done

    printf "\n"

done

printf "\e[33m"

root=$(

    for i in $(seq "$size" -2 5); do

        printf " "

    done

    printf "|***|"

);

printf "%s\n" "$root"

printf "%s\n" "$root"

printf "%s\n" "$root"

}

main()

{

clear

size=40

while true; do

    tree=$(printTree "$size")

    wait

    printf "\e[1;1H"

    printf "%s" "$tree"

    sleep 1 &

done

}

main

Proxy Information
Original URL
gemini://texto-plano.xyz/draco/scripts/xmastree
Status Code
Success (20)
Meta
application/octet-stream
Capsule Response Time
908.682714 milliseconds
Gemini-to-HTML Time
0.825963 milliseconds

This content has been proxied by September (3851b).