Re: [Jmol-users] Background Color

2016-04-22 Thread Robert Hanson
Yes, if you want an RGB triple, use $ print color("RGB",backgroundColor) or for hue/saturation/luminence: $ print color("toHSL",backgroundColor) Bob On Fri, Apr 22, 2016 at 3:55 PM, Otis Rothenberger wrote: > Thanks Rolf, > > I should have known that. It’s

Re: [Jmol-users] Background Color

2016-04-22 Thread Otis Rothenberger
Thanks Rolf, I should have known that. It’s appropriate that someone from an Institute on Aging answered my question! I see it returns the hex color. That’s going to be a string, correct??? Otis > On Apr 22, 2016, at 4:49 PM, Rolf Huehne wrote: > > On

Re: [Jmol-users] Background Color

2016-04-22 Thread Rolf Huehne
On 04/22/2016 10:39 PM, Otis Rothenberger wrote: > Does anyone know how to GET the existing background color in Jmol Script? I > looked through the getProperty docs, and I can’t see any access to the > existing background color. I can set a global in the load script to solve the > problem, but

[Jmol-users] Background Color

2016-04-22 Thread Otis Rothenberger
Does anyone know how to GET the existing background color in Jmol Script? I looked through the getProperty docs, and I can’t see any access to the existing background color. I can set a global in the load script to solve the problem, but I curious about an “in house” option that might be

[Jmol-users] background color JS error

2010-01-14 Thread Grossman, Robert B
When I sent the script background [white] to Jmol, it not only failed to run, but it prevented further execution of Javascript commands. I suggest that you accept JS names for colors, but even if you don't, I suggest that you avoid throwing JS errors by checking that the value is in an

Re: [Jmol-users] background color JS error

2010-01-14 Thread Paul Pillot
What about background white ? Jmol does accept js color names. Paul Le 14 janv. 2010 à 19:41, Grossman, Robert B a écrit : When I sent the script background [white] to Jmol, it not only failed to run, but it prevented further execution of Javascript commands. I suggest that you accept JS

Re: [Jmol-users] background color JS error

2010-01-14 Thread Grossman, Robert B
@lists.sourceforge.net Conversation: [Jmol-users] background color JS error Subject: Re: [Jmol-users] background color JS error What about background white ? Jmol does accept js color names. Paul Le 14 janv. 2010 à 19:41, Grossman, Robert B a écrit : When I sent the script background [white

Re: [Jmol-users] background color JS error

2010-01-14 Thread Paul Pillot
I don't think it sends a javascript error neither. On my tests it only sends a jmol error via the messagecallback method when enabled. Paul Le 14 janv. 2010 à 20:12, Grossman, Robert B a écrit : ah yes, that works. still, it should avoid throwing a JS error that prevents later commands from

Re: [Jmol-users] background color JS error

2010-01-14 Thread Grossman, Robert B
-users@lists.sourceforge.net Conversation: [Jmol-users] background color JS error Subject: Re: [Jmol-users] background color JS error I don't think it sends a javascript error neither. On my tests it only sends a jmol error via the messagecallback method when enabled. Paul Le 14 janv. 2010 à 20:12

Re: [Jmol-users] background color JS error

2010-01-14 Thread Paul Pillot
. From: Paul Pillot paul.pil...@ac-orleans-tours.fr Reply-To: jmol-users@lists.sourceforge.net Date: Thu, 14 Jan 2010 14:17:42 -0500 To: jmol-users@lists.sourceforge.net Conversation: [Jmol-users] background color JS error Subject: Re: [Jmol-users] background color JS

Re: [Jmol-users] background color JS error

2010-01-14 Thread Grossman, Robert B
Pillot paul.pil...@ac-orleans-tours.fr Reply-To: jmol-users@lists.sourceforge.net Date: Thu, 14 Jan 2010 14:49:27 -0500 To: jmol-users@lists.sourceforge.net Conversation: [Jmol-users] background color JS error Subject: Re: [Jmol-users] background color JS error Was the alert in the same jmolscript

Re: [Jmol-users] background color JS error

2010-01-14 Thread Paul Pillot
); } From: Paul Pillot paul.pil...@ac-orleans-tours.fr Reply-To: jmol-users@lists.sourceforge.net Date: Thu, 14 Jan 2010 14:49:27 -0500 To: jmol-users@lists.sourceforge.net Conversation: [Jmol-users] background color JS error Subject: Re: [Jmol-users] background color JS error Was the alert

[Jmol-users] background color and jmolGetPropertyAsString(image);

2008-09-05 Thread Steven R. Spilatro
Hi all, I would like to have the applet background automatically changed to white when a user snaps an image, and I have been toying around with the following code: function snapJmolImage (){ jmolScript(color background white); var myImage = jmolGetPropertyAsString(image);