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
Color Name
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 4000
- Joined: Sun Jan 07, 2007 9:12 pm
- Location: Bochum, Germany
Re: Color Name
on a Mac you can use this to get colorsToNames and namesToColor in the IDE of LC 8 DP 6 and up
it lists what the title says.
for other operationg systems the path probably has to be adapted.
Kind regards
Bernd
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
for other operationg systems the path probably has to be adapted.
Kind regards
Bernd
Re: Color Name
Hi Bernd,
Great find. Haven't looked at the supporting text files before. Very Interesting.
Great find. Haven't looked at the supporting text files before. Very Interesting.
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search
-
- Livecode Opensource Backer
- Posts: 9378
- Joined: Fri Feb 19, 2010 10:17 am
- Location: Bulgaria