forked from mtcontrib/unifieddyes
60 lines
2.5 KiB
Bash
Executable File
60 lines
2.5 KiB
Bash
Executable File
#!/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
|