-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
template
executable file
·82 lines (67 loc) · 2.39 KB
/
template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/env bash
# ??
#
# Author: ?
f=3 b=4
for j in f b; do
for i in {0..7}; do
printf -v $j$i %b "\e[${!j}${i}m"
done
done
for i in {0..7}; do
printf -v g$i %b "\e[9${i}m"
done
# bold
bd=$'\e[1m'
# reset color
rt=$'\e[0m'
# invert color (swaps positive and negative spaces)
iv=$'\e[7m'
### SYMBOLS ###
# BLOCKS:
# full: █ ▓ ▒ ░
# left (descending size): ▉ ▊ ▋ ▌ ▍ ▎ ▏
# right: ▐ (half)▕ (1/8)
# upper: ▀ (half) ▔ (1/8)
# lower (descending size): ▇ ▆ ▅ ▄ ▃ ▂ ▁
# quadrants: ▖ (lower left) ▗ (lower right) ▘ (upper left) ▝ (upper right)
# LINES:
# horizontal: ▬ — ▬ ― ‗ … ˍ ⚊ ⚌ ⚍ ⚎ ⚏
# slanted: ⁄ ╱ ╲ ⁒
# wavy: ˘ ⁐ ⁓ ⁔ ‿ 🜳 🝠 🝄 🝞 🝟 🝣 ⺁ ⺀ ⚞ ⚟ ♨ ◠◡ ◜◝◞◟☡
# SHAPES:
# circular: ● ◎ ◉ ◯ ◠ ◡ • ◐ ◑ ◒ ◓ Θ Ο ͻ ͼ ͽ Ѻ ˚ ⚬ ⚭ ⚮ ⚯ ⚆ ⚇ ⚈ ⚉
# triangular: ▲ ▼ ◄ ► ◀ ‣ ◢ ◤ ◥ ◤◢ ◭ ◮ ◺ Δ 🜁 🜂 ⛬ 🜃 🜄 🜅 ⁂ ‸ ‹ ›
# quadilaterals: ■ ▨ ▤ ▥ ▩ ♢ ♦ ⛶ ▰ 🀆 🀫 ☐
# stars: ★ ☆ ⛤ ⛥ ⛦ ⛧
# BOXES:
# double border: ═ ║ ╔ ╦ ╗ ╚ ╩ ╝
# single border: ∟ ┌ ┐└ ┘
# branches: ˦ ˧ ˨ ˪ ˫
#
# dots: ⁚ ⁘ ⁙ ⁛ ⁝ ⁞ ⁖ ⣰ see https://en.wikipedia.org/wiki/Braille_Patterns
### COLORS ###
# foreground:
# f0=black, f1=red, f2=green, f3=yellow, f4=blue
# f5=magenta, f6=cyan, f7=white
#
# g0=bright black, g1=bright red, g2=bright green, g3=bright yellow,
# g4=bright blue, g5=bright magneta, g6=bright cyan, g7=bright white
#
# background:
# b0=black, b1=red, b2=green, b3=yellow, b4=blue
# b5=magenta, b6=cyan, b7=white
# this is a 10x20 grid of blocks to start you off
cat << EOF
$f7████████████████████
$f7████████████████████
$f7████████████████████
$f7████████████████████
$f7████████████████████
$f7████████████████████
$f7████████████████████
$f7████████████████████
$f7████████████████████
$f7████████████████████
$rt
EOF