Last active
July 5, 2017 04:51
-
-
Save beardpapa/ac892e6072ed7114523dfac14075d9b2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#Background Colors | |
E=$(tput sgr0); R=$(tput setab 1); G=$(tput setab 2); Y=$(tput setab 3); | |
B=$(tput setab 4); M=$(tput setab 5); C=$(tput setab 6); W=$(tput setab 7); | |
function e() { echo -e "$E"; } | |
function x() { echo -n "$E "; } | |
function r() { echo -n "$R "; } | |
function g() { echo -n "$G "; } | |
function y() { echo -n "$Y "; } | |
function b() { echo -n "$B "; } | |
function m() { echo -n "$M "; } | |
function c() { echo -n "$C "; } | |
function w() { echo -n "$W "; } | |
#putpixels | |
function u() { | |
h="$*";o=${h:0:1};v=${h:1}; | |
for i in `seq $v` | |
do | |
$o; | |
done | |
} | |
img="\ | |
b15 r25 e1 b1 w1 b1 w1 b1 w1 b1 w1 b1 w1 b1 w1 b1 w1 b1 r25 e1 b15 r25 e1 b2 w1 b1 w1 b1 w1 b1 w1 b1 w1 b1 w1 b2 w25 e1 b15 w25 e1 b1 w1 b1 w1 b1 w1 b1 w1 b1 w1 b1 w1 b1 w1 b1 r25 e1 b15 r25 e1 b2 w1 b1 w1 b1 w1 b1 w1 b1 w1 b1 w1 b2 w25 e1 b15 w25 e1 b1 w1 b1 w1 b1 w1 b1 w1 b1 w1 b1 w1 b1 w1 b1 r25 e1 b15 r25 e1 w40 e1 w40 e1 r40 e1 r40 e1 w40 e1 w40 e1 r40 e1 r40 e1 w40 e1 w40 e1 r40 e1 r40" | |
for n in $img | |
do | |
u $n | |
done | |
e; | |
exit 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment