mirror of
https://github.com/notwa/rc
synced 2025-02-05 07:43:22 -08:00
add another script to dump colors in a different order
This commit is contained in:
parent
2fb9bbe24f
commit
a78187b435
1 changed files with 22 additions and 0 deletions
22
sh/colors2
Normal file
22
sh/colors2
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/usr/bin/env bash
|
||||
# YES_ZSH
|
||||
# YES_BASH
|
||||
# YES_DASH
|
||||
# YES_ASH
|
||||
|
||||
colors2() {
|
||||
[ $# -eq 0 ] || { printf "%s\n" "$0: does not take arguments" >&2; return 1; }
|
||||
for a in 0 60; do
|
||||
for b in 0 60; do
|
||||
for i in 30 31 33 32 36 34 35 37; do
|
||||
for j in 40 41 43 42 46 44 45 47; do
|
||||
printf ' \033[%s;%sm %03d \033[m' $((a+j)) $((b+i)) $((a+j))
|
||||
done
|
||||
printf '\n'
|
||||
done
|
||||
done
|
||||
[ $a = 0 ] && printf '\n'
|
||||
done
|
||||
}
|
||||
|
||||
[ -n "${preload+-}" ] || colors2 "$@"
|
Loading…
Add table
Reference in a new issue