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
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
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
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
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
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
@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
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
-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
.
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
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
);
}
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
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);
13 matches
Mail list logo