#!/bin/sh
#
# show_colors color_regex
#
# Given a color name regular expression magick display those colors with there names.
#
# For example:   show_colors  green
# will show all 'green' colors known to ImageMagick.
#
#
IFS='
'
for color in `magick -list color | grep -i "$1" | sed 's/ *.rgb.*//'`
do
   magick -size 100x50 -label "$color" xc:"$color" miff:-
done |
   magick montage - -tile 6x -geometry +5+5 -frame 5 show:

