in reply to A way to validate a string as a color:
in thread Best way to validate a string as a color?
Your list looks a little bit short:
>perl -nE '@x=split;$seen{join(" ",@x[0,1,2])}++;END{say 0+keys%seen}' + < /usr/share/X11/rgb.txt 512 >wc -l /usr/share/X11/rgb.txt 782 /usr/share/X11/rgb.txt >
(From Slackware64 14.2)
Alexander
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A way to validate a string as a color:
by holli (Abbot) on Oct 17, 2017 at 20:55 UTC | |
by afoken (Chancellor) on Oct 17, 2017 at 21:06 UTC | |
by holli (Abbot) on Oct 17, 2017 at 21:45 UTC |