From b910fad2e7aabdcd348342bdffad40f13cbb2cd0 Mon Sep 17 00:00:00 2001 From: xero Date: Thu, 26 May 2016 21:50:10 -0400 Subject: add metroid ascii art script --- fun/bin/metroid | 139 +++++++++++++++++++++++++++++++++++++++++++++----------- 1 file changed, 113 insertions(+), 26 deletions(-) diff --git a/fun/bin/metroid b/fun/bin/metroid index 5bb5c72..8995836 100755 --- a/fun/bin/metroid +++ b/fun/bin/metroid @@ -1,27 +1,114 @@ #!/bin/sh -cat << EOF - -   -     -     -       -         -           -           -           -           -         -             -                  -              -          -            -            -            -           -         -             -           -         -     -EOF +# +# metroid: a metroid ascii banner generator +# MMXVI xero (http://xero.nu) + +usage() { +printf "usage: `basename $0` \n\ + [-m --mini mini] \n\ + [-s --super super] \n\ + [-t --text text] \n\ + [-n --normal normal] \n\ + [-h --help help]\n" +} + +text() { + printf "\n .___.\n / @ \ \n \ @ @ /\n {'^'}\n\n" +} + +mini() { +cat << METROID + + ▄▄ ▀▀▀▀▀▀▀▀▀▀▀ ▄▄ + ▄ ▀▀▀▀          ▀▀▀ ▄ + ▄ ▀▀  ▀▀             ▀▀ ▄ +  ▀▀  ▀                  ▀▀  + ▄ ▀▀ ▀ ▀                ▀▀▀▀▀ ▄ + ▄     ▀                         ▄ +               ▀▀▀▀▀    ▀▀▀        +                             ▀▀▀  ▄ +  ▀        ▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀  ▀      +   ▀▀▀         ▀   ▀      ▀▀        +  ▀▀▀▀    ▀▀   ▀   ▀   ▀▀    ▀▀▀▀   +    ▀▀▀▀ ▀▀▀▀▀▀     ▀▀▀▀▀▀ ▀▀▀▀     +▀▀▀▀  ▀▀▀▀  ▀▀▀     ▀▀▀  ▀▀▀▀  ▀▀▀▀ + ▀▀             ▀▀▀             ▀▀ +  ▀▀      ▀  ▀   ▀  ▀      ▀▀  + ▀ ▀        ▀▀▀▀▀        ▀ ▀ + ▀▀▀ ▀ ▀   ▀ ▀ ▀▀▀ + +METROID +} + +super() { +cat << METROID + + ▄▄▄▀▀▀▀▀▀▀▀▄▄▄ + ▄▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄▄ + ▄▀▀▀▀▀▀▀▀▀      ▀▀▀▀▀▀▀▀▀▄ + ▀▀▀▀ ▀▀▀▀    ▀▀    ▀▀▀▀ ▀▀▀▀ + ▀▀▀▀▀  ▀▀▀▀▀ ▀  ▀ ▀▀▀▀▀  ▀▀▀▀▀ + ▀ ▀▀▀▀▀ ▀▀▀ ▀▀▀▀▀▀ ▀▀▀ ▀▀▀▀▀ ▀  +▀▀▀▀▀▀  ▀▀▀▀ ▀▀▀▀▀▀ ▀▀▀▀  ▀▀▀▀▀▀ +▀  ▀▀▀▀▀▀▀▀▀▀ ▀▀▀▀ ▀▀▀▀▀▀▀▀▀▀  ▀ +▀▀▀ ▀▀▀▀▀▀▀▀▀▀▀  ▀▀▀▀▀▀▀▀▀▀▀ ▀▀▀ + ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ + ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀ +  ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀▀  + ▀▀▀▀▀▀  ▀▀▀ ▀▀▀  ▀▀▀▀▀▀ + ▀▀▀  ▀▀   ▀▀  ▀▀▀ + ▀▀▀▀ ▀▀▀▀ + ▀ ▀ ▀ ▀ + +METROID +} + +normal() { +cat << METROID + +  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  +  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  +  ▀▀▀▀▀▀                ▀▀▀▀▀▀  +  ▀▀▀▀    ▀▀                  ▀▀▀▀  +  ▀▀▀▀  ▀▀  ▀▀▀▀▀▀▀▀▀▀            ▀▀▀▀  +      ▀▀      ▀▀▀▀▀▀▀▀▀▀          ▀▀▀▀▀▀  +  ▀▀▀▀▀▀  ▀▀                      ▀▀▀▀      +        ▀▀          ▀▀▀▀▀▀              ▀▀▀▀  +  ▀▀▀▀  ▀▀          ▀▀▀▀▀▀▀▀                    +                    ▀▀    ▀▀      ▀▀▀▀          +                    ▀▀    ▀▀            ▀▀▀▀▀▀▀▀  + ▀▀▀▀    ▀▀▀▀  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀  ▀▀▀▀▀▀      +     ▀▀▀▀▀▀▀▀▀▀▀▀  ▀▀▀▀▀▀▀▀▀▀▀▀  ▀▀▀▀  ▀▀          +     ▀▀▀▀            ▀▀    ▀▀                      +   ▀▀▀▀▀▀    ▀▀▀▀    ▀▀    ▀▀    ▀▀▀▀    ▀▀▀▀▀▀    +   ▀▀▀▀▀▀▀▀▀▀  ▀▀▀▀▀▀▀▀    ▀▀▀▀▀▀▀▀  ▀▀▀▀▀▀▀▀▀▀    +     ▀▀▀▀▀▀  ▀▀▀▀▀▀▀▀        ▀▀▀▀▀▀▀▀  ▀▀▀▀▀▀      + ▀▀▀▀    ▀▀▀▀▀▀  ▀▀▀▀        ▀▀▀▀  ▀▀▀▀▀▀    ▀▀▀▀  +  ▀▀▀▀        ▀▀▀▀  ▀▀▀▀▀▀▀▀  ▀▀▀▀        ▀▀▀▀  +      ▀▀ ▀▀ ▀▀  ▀▀        ▀▀  ▀▀ ▀▀ ▀▀      +  ▀▀▀▀       ▀▀  ▀▀    ▀▀  ▀▀       ▀▀▀▀  +  ▀▀▀▀     ▀▀   ▀▀▀▀   ▀▀     ▀▀▀▀  +  ▀▀   ▀▀▀▀   ▀▀▀▀   ▀▀  +  ▀▀   ▀▀  + +METROID +} + +case "$1" in + *-m|--mini|mini*) + mini + ;; + *-s|--super|super*) + super + ;; + *-n|--normal|normal) + normal + ;; + *-t|--text|text) + text + ;; + *) + text + usage + ;; +esac -- cgit v1.2.1