\ Untitled - /g/pasta 2.4
From Gracious Goose, 8 Years ago, written in Bash.
Embed
  1. #!/bin/sh
  2.  
  3. # ANSI Color -- use these variables to easily have different color
  4. #    and format output. Make sure to output the reset sequence after
  5. #    colors (f = foreground, b = background), and use the 'off'
  6. #    feature for anything you turn on.
  7.  
  8. initializeANSI()
  9. {
  10.   esc=""
  11.  
  12.   blackf="${esc}[30m";   redf="${esc}[31m";    greenf="${esc}[32m"
  13.   yellowf="${esc}[33m"   bluef="${esc}[34m";   purplef="${esc}[35m"
  14.   cyanf="${esc}[36m";    whitef="${esc}[37m"
  15.  
  16.   blackb="${esc}[40m";   redb="${esc}[41m";    greenb="${esc}[42m"
  17.   yellowb="${esc}[43m"   blueb="${esc}[44m";   purpleb="${esc}[45m"
  18.   cyanb="${esc}[46m";    whiteb="${esc}[47m"
  19.  
  20.   boldon="${esc}[1m";    boldoff="${esc}[22m"
  21.   italicson="${esc}[3m"; italicsoff="${esc}[23m"
  22.   ulon="${esc}[4m";      uloff="${esc}[24m"
  23.   invon="${esc}[7m";     invoff="${esc}[27m"
  24.  
  25.   reset="${esc}[0m"
  26. }
  27.  
  28. # note in this first use that switching colors doesn't require a reset
  29. # first - the new color overrides the old one.
  30.  
  31. initializeANSI
  32.  
  33. cat << EOF
  34.  
  35.    ${boldon}${redf}▀▄   ▄▀  ${reset}    ${boldon}${greenf}▄▄▄████▄▄▄ ${reset}   ${boldon}${yellowf}  ▄██▄  ${reset}     ${boldon}${bluef}▀▄   ▄▀  ${reset}    ${boldon}${purplef}▄▄▄████▄▄▄ ${reset}   ${boldon}${cyanf}  ▄██▄  ${reset}
  36.   ${boldon}${redf}▄█▀███▀█▄ ${reset}   ${boldon}${greenf}███▀▀██▀▀███${reset}   ${boldon}${yellowf}▄█▀██▀█▄${reset}    ${boldon}${bluef}▄█▀███▀█▄ ${reset}   ${boldon}${purplef}███▀▀██▀▀███${reset}   ${boldon}${cyanf}▄█▀██▀█▄${reset}
  37.  ${boldon}${redf}█▀███████▀█${reset}   ${boldon}${greenf}▀▀▀██▀▀██▀▀▀${reset}   ${boldon}${yellowf}▀▀█▀▀█▀▀${reset}   ${boldon}${bluef}█▀███████▀█${reset}   ${boldon}${purplef}▀▀▀██▀▀██▀▀▀${reset}   ${boldon}${cyanf}▀▀█▀▀█▀▀${reset}
  38.  ${boldon}${redf}▀ ▀▄▄ ▄▄▀ ▀${reset}   ${boldon}${greenf}▄▄▀▀ ▀▀ ▀▀▄▄${reset}   ${boldon}${yellowf}▄▀▄▀▀▄▀▄${reset}   ${boldon}${bluef}▀ ▀▄▄ ▄▄▀ ▀${reset}   ${boldon}${purplef}▄▄▀▀ ▀▀ ▀▀▄▄${reset}   ${boldon}${cyanf}▄▀▄▀▀▄▀▄${reset}
  39.  
  40.    ${redf}▀▄   ▄▀  ${reset}    ${greenf}▄▄▄████▄▄▄ ${reset}   ${yellowf}  ▄██▄  ${reset}     ${bluef}▀▄   ▄▀  ${reset}    ${purplef}▄▄▄████▄▄▄ ${reset}   ${cyanf}  ▄██▄  ${reset}
  41.   ${redf}▄█▀███▀█▄ ${reset}   ${greenf}███▀▀██▀▀███${reset}   ${yellowf}▄█▀██▀█▄${reset}    ${bluef}▄█▀███▀█▄ ${reset}   ${purplef}███▀▀██▀▀███${reset}   ${cyanf}▄█▀██▀█▄${reset}
  42.  ${redf}█▀███████▀█${reset}   ${greenf}▀▀▀██▀▀██▀▀▀${reset}   ${yellowf}▀▀█▀▀█▀▀${reset}   ${bluef}█▀███████▀█${reset}   ${purplef}▀▀▀██▀▀██▀▀▀${reset}   ${cyanf}▀▀█▀▀█▀▀${reset}
  43.  ${redf}▀ ▀▄▄ ▄▄▀ ▀${reset}   ${greenf}▄▄▀▀ ▀▀ ▀▀▄▄${reset}   ${yellowf}▄▀▄▀▀▄▀▄${reset}   ${bluef}▀ ▀▄▄ ▄▄▀ ▀${reset}   ${purplef}▄▄▀▀ ▀▀ ▀▀▄▄${reset}   ${cyanf}▄▀▄▀▀▄▀▄${reset}
  44.  
  45.  
  46.                                      ${whitef}▌${reset}
  47.  
  48.                                    ${whitef}▌${reset}
  49.                                    ${whitef}${reset}
  50.                                   ${whitef}▄█▄${reset}
  51.                               ${whitef}▄█████████▄${reset}
  52.                               ${whitef}▀▀▀▀▀▀▀▀▀▀▀${reset}
  53.  
  54. EOF