mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-11-16 13:00:45 -06:00
generating rune
This commit is contained in:
parent
77deb80b1b
commit
60fc6387bf
1 changed files with 17 additions and 0 deletions
17
generating-rune.sh
Executable file
17
generating-rune.sh
Executable file
|
@ -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"
|
Loading…
Reference in a new issue