Page 2 of 2

Re: Color Name

Posted: Wed Dec 16, 2015 8:46 pm
by bn
There are 552 colorNames with unique RGB values. There are 256*256*256 possible RGB values = 16.777.216

If you set the startValue of your sliders to 0 you will find more hits. E.g. 255,0,0 or 255,255,0.

Otherwise your chances are slim to find the exact RGB value of a given color name. Something like one in 30393. (16.777.216 / 552) if my math is correct.


Kind regards
Bernd

Re: Color Name

Posted: Wed Dec 16, 2015 9:42 pm
by bn
on a Mac you can use this to get colorsToNames and namesToColor in the IDE of LC 8 DP 6 and up

Code: Select all

on mouseUp
   put specialFolderPath("engine") into tPath
   set the itemDelimiter to "/"
   put "" into last item of tPath
   put "Tools/Toolset/resources/supporting_files/colors/colorsToNames.txt" after tPath
   put url ("file:" & tPath) into field 1
   put "Tools/Toolset/resources/supporting_files/colors/namesToColors.txt" into item - 6 to - 1 of tPath
   put url ("file:" & tPath) into field 2
end mouseUp
it lists what the title says.

for other operationg systems the path probably has to be adapted.

Kind regards

Bernd

Re: Color Name

Posted: Wed Dec 16, 2015 9:55 pm
by AndyP
Hi Bernd,

Great find. Haven't looked at the supporting text files before. Very Interesting.

Re: Color Name

Posted: Sun Mar 13, 2016 12:13 pm
by richmond62