in reply to Re: A way to validate a string as a color:
in thread Best way to validate a string as a color?

That's because rgb.txt contains a of duplicates and probably system dependent variations. I complied with the list on Wikipedia I linked to.


holli

You can lead your users to water, but alas, you cannot drown them.

Replies are listed 'Best First'.
Re^3: A way to validate a string as a color:
by afoken (Chancellor) on Oct 17, 2017 at 21:06 UTC

    Still, Slackware's rgb.txt defines 512 unique colors (and 270 dupes). The Xorg version is identical to the Slackware version.

    Alexander

    --
    Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
      In fact that file contains 162 distinct color names and 261 distinct color values.
      Also my hash doesn't include all the grays. But yes, more than in my list.


      holli

      You can lead your users to water, but alas, you cannot drown them.