summaryrefslogtreecommitdiff
path: root/.local/bin/colorbars
blob: e8e0b9db1eaf8853b6cfa4a80303d4a483015d00 (plain)
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
#!/bin/sh
echo

# mini smpte color bars
for y in $(seq 0 6); do
  printf %s '      '
  for color in 7 3 6 2 5 1 4; do
    tput setab ${color}
    printf %s '    '
  done
  tput sgr0
  echo
done

for y in 0 1; do
  printf %s '      '
  for color in 4 0 5 0 6 0 7; do
    tput setab ${color}
    printf %s '    '
  done
  tput sgr0
  echo
done

for y in $(seq 0 2); do
  printf %s '      '
  for color in 4 4 4 4 4 7 7 7 7 7 5 5 5 5 5 0 0 0 0 0 0 0 0 0 0 0 0 0; do
    tput setab ${color}
    printf %s ' '
  done
  tput sgr0
  echo
done

echo