URI: 
       fade.sh - pointtools - Simple point utilities to hold text presentations.
  HTML git clone git://bitreich.org/pointtools/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/pointtools/
   DIR Log
   DIR Files
   DIR Refs
   DIR Tags
   DIR README
   DIR LICENSE
       ---
       fade.sh (352B)
       ---
            1 #!/bin/sh
            2 
            3 set -e
            4 
            5 clear
            6 
            7 fg_rgb() {
            8     printf "\033[38;2;%d;%d;%dm" $1 $2 $3
            9 }
           10 
           11 def() {
           12     printf "\033[0m"
           13 }
           14 
           15 from=$1
           16 to=$2
           17 
           18 home() {
           19     printf "\033[;H"
           20 }
           21 
           22 i=255
           23 while [ $i -gt 0 ]; do
           24     fg_rgb $i $i $i
           25     home
           26     cat "$from"
           27     i=$((i-1))
           28 done
           29 
           30 clear
           31 
           32 while [ $i -lt 255 ]; do
           33     fg_rgb $i $i $i
           34     home
           35     cat "$to"
           36     i=$((i+1))
           37 done