Re: translating a color name to RGB triplet

2006-09-11 Thread Chipp Walters
Ken, I took care to notice that gem of scripting the first time you mentioned it. It also has the benefit of being able to reconcile new colornames (if Rev ever adds them). -Chipp ___ use-revolution mailing list use-revolution@lists.runrev.com Please vi

Re: translating a color name to RGB triplet

2006-09-09 Thread Ken Ray
On 9/9/06 12:34 PM, "Stephen Barncard" <[EMAIL PROTECTED]> wrote: > Somehow the thread has been lost. > > The colornames does not give a list of the color RGB triad, just the > names themselves. In the user-accessible, documented Rev world, there > is no way shown to CONVERT from color name to RG

Re: translating a color name to RGB triplet

2006-09-09 Thread Stephen Barncard
Ok, test done. These internal functions don't even agree with each other. AND they don't show up in a standalone. Many of the color names don't come back the same. Verdict: Use the colornames for official names, but make up your own array or conversion table for any translation, i.e. the Er

Re: translating a color name to RGB triplet

2006-09-09 Thread Stephen Barncard
Somehow the thread has been lost. The colornames does not give a list of the color RGB triad, just the names themselves. In the user-accessible, documented Rev world, there is no way shown to CONVERT from color name to RGB triad and vice-versa. This is what I was looking for. Mark Schonewill

Re: translating a color name to RGB triplet

2006-09-09 Thread Mark Wieder
Mark- Saturday, September 9, 2006, 2:54:15 AM, you wrote: > This appears to work in the IDE: > put revNumberToColor("249,232,210") Interesting. I had no idea revNumberToColor() and revColorToNumber() existed... I can see why they're not documented, though... put revColorToNumber("squirrel") r

Re: translating a color name to RGB triplet

2006-09-09 Thread Mark Wieder
Stephen- Friday, September 8, 2006, 12:29:41 PM, you wrote: > somewhere within the bowels of Rev must be a way to convert this directly. >From Mark Waddingham earlier this year: In terms of the colours themselves, then they come from the standard X11 named colour table. One reference for this i

Re: translating a color name to RGB triplet

2006-09-09 Thread Mark Schonewille
This appears to work in the IDE: put revNumberToColor("249,232,210") I haven't tested it in a standalone. To create a function that uses an array, use the properties cRevColorTranslation and cRevColorTranslation2 of stack "revlibrary" (or test if above function works in a standalone). Bes

Re: translating a color name to RGB triplet

2006-09-08 Thread Ken Ray
On 9/8/06 2:29 PM, "Stephen Barncard" <[EMAIL PROTECTED]> wrote: > somewhere within the bowels of Rev must be a way to convert this directly. > > I know you can input colornames to 'Answer Color' > > answer color with "AliceBlue" > put it into fld "output2" > > (it contains 239,247,25

Re: translating a color name to RGB triplet

2006-09-08 Thread Stephen Barncard
somewhere within the bowels of Rev must be a way to convert this directly. I know you can input colornames to 'Answer Color' answer color with "AliceBlue" put it into fld "output2" (it contains 239,247,255) and of course this works - set the backgroundcolor of btn "toadMeat" to

Re: translating a color name to RGB triplet

2006-09-08 Thread Dom
KALANGI Vijay BABU <[EMAIL PROTECTED]> wrote: > Can somebody suggest me a way to "translate a color name to RGB triplet" you may also peek at "Color Names Reference" under "Help/Quick Reference Guides" and see how they translate... ___ use-revolution

RE: translating a color name to RGB triplet

2006-09-08 Thread [EMAIL PROTECTED]
Vijay, Just type COLORPICKER into the Google Search window on your web browser and take your PICK. Barry Barber ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscripti

Re: translating a color name to RGB triplet

2006-09-08 Thread Ken Ray
On 9/8/06 7:32 AM, "KALANGI Vijay BABU" <[EMAIL PROTECTED]> wrote: > Hi All, > > > > Can somebody suggest me a way to "translate a color name to RGB triplet" Well you need to have a graphic object (like a square) and then execute this (I called my graphic "ColorHolder"): function getRGB pCol

Re: translating a color name to RGB triplet

2006-09-08 Thread David Bovill
There is no direct way. So you either have to set some objects color and retrieve it (locking the screen). Or you have to construct an array or lookup table in advance and store this somewhere. The former works fine even if "ugly". ___ use-revolution ma

translating a color name to RGB triplet

2006-09-08 Thread KALANGI Vijay BABU
Hi All, Can somebody suggest me a way to "translate a color name to RGB triplet" Thanks in advance Bubye Vijay. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage