From 60fc6387bf04ff04a11bea831d7ae2da8cae8f7a Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Thu, 19 Jan 2023 07:11:16 -0600 Subject: [PATCH] generating rune --- generating-rune.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 generating-rune.sh diff --git a/generating-rune.sh b/generating-rune.sh new file mode 100755 index 0000000..5946d2f --- /dev/null +++ b/generating-rune.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +set -e + +# rune=$1 +rune=othalan +# color=${36:$2} +# color=${36:$2} +color=36 +FILENAME="Runic_letter_${rune}.png" +IMAGE_URL="https://upload.wikimedia.org/wikipedia/commons/1/16/Runic_letter_othalan.png" +echo "$IMAGE_URL" +wget "$IMAGE_URL" +printf "\033[1;%dm\n%s\033[0m \033[1m%s\033[0m\n\n" \ + "$color" \ + "$(ascii-image-converter "$FILENAME" -n -H 18)" \ + "$rune" \ + >"${rune}.txt"