summaryrefslogtreecommitdiff
path: root/listcolors.sh
blob: 8038c05ef291f9dfbaf24e625aafa6bf66140de9 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash

pushd . >/dev/null

cd textures

echo -e "\n\nFull-saturation colors:"
echo -e "-----------------------\n"

for i in `ls *dark*.png|grep -v _s50|grep -v paint|grep -v black` ; do
	rgb=`convert $i -crop 1x1+8+11 -depth 8 txt: |grep "0,0: (" |cut -f 2- -d "(" |cut -f 1-3 -d ","`
	color=`basename $i .png | sed 's/_/ /g; s/unifieddyes //; s/s50/50% saturation/'`
	printf "%-32s %-12s %s\n" "$color" "$rgb" "$i"
done |sort

for i in `ls *medium*.png|grep -v _s50|grep -v paint|grep -v black` ; do
	rgb=`convert $i -crop 1x1+8+11 -depth 8 txt: |grep "0,0: (" |cut -f 2- -d "(" |cut -f 1-3 -d ","`
	color=`basename $i .png | sed 's/_/ /g; s/unifieddyes //; s/s50/50% saturation/'`
	printf "%-32s %-12s %s\n" "$color" "$rgb" "$i"
done |sort

for i in `ls *.png|grep -v medium |grep -v dark|grep -v _s50|grep -v paint|grep -v black|grep -v titanium` ; do
	rgb=`convert $i -crop 1x1+8+11 -depth 8 txt: |grep "0,0: (" |cut -f 2- -d "(" |cut -f 1-3 -d ","`
	color=`basename $i .png | sed 's/_/ /g; s/unifieddyes //; s/s50/50% saturation/'`
	printf "%-32s %-12s %s\n" "$color" "$rgb" "$i"
done |sort


echo -e "\nLow-saturation colors:"
echo -e "----------------------\n"

for i in `ls *dark*_s50.png|grep -v paint|grep -v black` ; do
	rgb=`convert $i -crop 1x1+8+11 -depth 8 txt: |grep "0,0: (" |cut -f 2- -d "(" |cut -f 1-3 -d ","`
	color=`basename $i .png | sed 's/_/ /g; s/unifieddyes //; s/s50/50% saturation/'`
	printf "%-32s %-12s %s\n" "$color" "$rgb" "$i"
done |sort

for i in `ls *medium*_s50.png|grep -v paint|grep -v black` ; do
	rgb=`convert $i -crop 1x1+8+11 -depth 8 txt: |grep "0,0: (" |cut -f 2- -d "(" |cut -f 1-3 -d ","`
	color=`basename $i .png | sed 's/_/ /g; s/unifieddyes //; s/s50/50% saturation/'`
	printf "%-32s %-12s %s\n" "$color" "$rgb" "$i"
done |sort

for i in `ls *_s50.png|grep -v dark|grep -v medium|grep -v paint|grep -v black` ; do
	rgb=`convert $i -crop 1x1+8+11 -depth 8 txt: |grep "0,0: (" |cut -f 2- -d "(" |cut -f 1-3 -d ","`
	color=`basename $i .png | sed 's/_/ /g; s/unifieddyes //; s/s50/50% saturation/'`
	printf "%-32s %-12s %s\n" "$color" "$rgb" "$i"
done |sort

echo -e "\nGreyscale:"
echo -e "----------\n"

printf "%-32s %-12s %s\n" "black" "  0,  0,  0" "unifieddyes_black.png"
printf "%-32s %-12s %s\n" "dark grey" " 64, 64, 64" "unifieddyes_darkgrey_paint.png"
printf "%-32s %-12s %s\n" "medium grey" "128,128,128" "unifieddyes_grey_paint.png"
printf "%-32s %-12s %s\n" "light grey" "192,192,192" "unifieddyes_lightgrey_paint.png"
printf "%-32s %-12s %s\n" "white" "255,255,255" "unifieddyes_white_paint.png"

popd >/dev/null