Skip to content

Instantly share code, notes, and snippets.

@alystair
Created May 17, 2018 17:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alystair/f12b06b3a91040d74b8279a4bfdcdcd6 to your computer and use it in GitHub Desktop.
Save alystair/f12b06b3a91040d74b8279a4bfdcdcd6 to your computer and use it in GitHub Desktop.
Terminal artwork
#!/bin/bash
echo "A pinprick within a pinprick in the infinite fabric of space. @Lorin"
#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="\
x15 y1 x24 e1 x3 y1 x30 y1 x5 e1 x40 e1 x4 y2 x5 w5 x7 y1 x7 y1 x6 w2 e1 x3 y2 x4 m1 w7 x19 m1 w3 e1 w2 x1 y2 x15 y1 x19 e1 w4 y2 x2 y1 x26 y1 x4 e1 x4 y4 x13 w5 x14 e1 x19 m1 w7 x13 e1 x40 e1 x40 e1 x7 b1 c2 w1 x7 b1 c2 w1 x18 e1 b1 x1 b1 x1 b1 x1 b1 c2 m1 x3 b1 x1 b1 x1 b1 c2 m1 x2 b1 x1 b1 x1 b1 x1 b1 x1 b1 x1 b1 x1 b1 x1 b1 x1 b1 e1 g1 c9 m3 g1 c3 g1 c3 m4 g1 c4 m1 b1 m1 b1 g1 c3 b1 m1 e1 m3 c4 b1 m1 b1 c8 m2 g1 c5 b1 m1 b1 g1 c4 b1 m1 b1 m1 g1 c1 e1 c2 b1 m1 b1 m1 b1 m1 g1 c5 b1 m1 b1 g1 c3 m1 b1 m1 b1 g1 c3 b1 m1 b1 m1 b1 g1 c3 m1 b1 e1 m2 g1 c7 b1 m1 b1 m1 c4 m1 c1 g1 c5 m1 b1 g1 c11 e1 c3 b1 m1 b1 m1 b1 m1 b1 g1 c3 b1 m1 b1 m1 c12 b2 m1 b1 m1 g1 c3 m1 e1 c11 m1 b1 c5 b1 w5 c2 b1 m1 b1 c3 w3 b1 m1 b1 m1 c1 e1 c3 w2 b1 c9 b2 w2 m5 b1 c3 w4 m2 w1 b1 c4 e1 c2 w1 m2 w1 b9 w2 m2 y4 w1 m1 b1 c1 w1 m3 c1 w1 c1 m1 w1 b4 e1 w2 m1 y3 w10 m1 y8 w2 m1 c1 y1 c1 y1 c1 y2 w5 e1 y40"
for n in $img
do
u $n
done
e;
exit 0;
@alystair
Copy link
Author

image
Preview

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment