Depending on your use, maybe this will help:

 set the backgroundColor of control <yourColorObject> to "gray40"
 set the screenMouseLoc to globalLoc(the loc of <yourColorObject>)
 put the mouseColor -- puts "102,102,102"

Judging from this and Richmond's reply, it appears you have to do the name-to-triplet translation indirectly, through the setting and getting of an object's properties. But maybe someone else will pipe in...

Phil Davis



James Hurley wrote:
How do I translate a color name (Blue1 for example) into its RGB values? Programatically.

Jim Hurley

--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to