Re: [Jmol-users] Background Color
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 Rothenbergerwrote: > 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 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 I curious about an “in house” option that might be > available to get this color. > >> > > It is in the 'General Parameters' list and can be checked and set, e.g.: > > > > print backgroundColor > > SET backgroundColor "green" > > > > Regards, > > Rolf > > > > -- > > > > Rolf Huehne > > Postdoc > > > > Leibniz Institute on Aging - Fritz Lipmann Institute (FLI) > > Beutenbergstrasse 11 > > 07745 Jena, Germany > > > > Phone: +49 3641 65 6205 > > Fax: +49 3641 65 6210 > > E-Mail: rolf.hue...@leibniz-fli.de > > Website: http://www.leibniz-fli.de > > > > Scientific Director: Prof. Dr. K. Lenhard Rudolph > >Head of Administration: Dr. Daniele Barthel > > Chairman of Board of Trustees: Burkhard Zinner > > > > VAT No: DE 153 925 464 > > Register of Associations: No. 230296, Amtsgericht Jena > > Tax Number: 162/141/08228 > > > > > > > -- > > Find and fix application performance issues faster with Applications > Manager > > Applications Manager provides deep performance insights into multiple > tiers of > > your business applications. It resolves application problems quickly and > > reduces your MTTR. Get your free trial! > > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > > ___ > > Jmol-users mailing list > > Jmol-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/jmol-users > > > > -- > Find and fix application performance issues faster with Applications > Manager > Applications Manager provides deep performance insights into multiple > tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > ___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users > -- Robert M. Hanson Larson-Anderson Professor of Chemistry Chair, Department of Chemistry St. Olaf College Northfield, MN http://www.stolaf.edu/people/hansonr If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] Background Color
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 Huehnewrote: > > 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 I curious about an “in house” option that might be >> available to get this color. >> > It is in the 'General Parameters' list and can be checked and set, e.g.: > > print backgroundColor > SET backgroundColor "green" > > Regards, > Rolf > > -- > > Rolf Huehne > Postdoc > > Leibniz Institute on Aging - Fritz Lipmann Institute (FLI) > Beutenbergstrasse 11 > 07745 Jena, Germany > > Phone: +49 3641 65 6205 > Fax: +49 3641 65 6210 > E-Mail: rolf.hue...@leibniz-fli.de > Website: http://www.leibniz-fli.de > > Scientific Director: Prof. Dr. K. Lenhard Rudolph >Head of Administration: Dr. Daniele Barthel > Chairman of Board of Trustees: Burkhard Zinner > > VAT No: DE 153 925 464 > Register of Associations: No. 230296, Amtsgericht Jena > Tax Number: 162/141/08228 > > > -- > Find and fix application performance issues faster with Applications Manager > Applications Manager provides deep performance insights into multiple tiers of > your business applications. It resolves application problems quickly and > reduces your MTTR. Get your free trial! > https://ad.doubleclick.net/ddm/clk/302982198;130105516;z > ___ > Jmol-users mailing list > Jmol-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/jmol-users -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] Background Color
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 I curious about an “in house” option that might be available to > get this color. > It is in the 'General Parameters' list and can be checked and set, e.g.: print backgroundColor SET backgroundColor "green" Regards, Rolf -- Rolf Huehne Postdoc Leibniz Institute on Aging - Fritz Lipmann Institute (FLI) Beutenbergstrasse 11 07745 Jena, Germany Phone: +49 3641 65 6205 Fax: +49 3641 65 6210 E-Mail: rolf.hue...@leibniz-fli.de Website: http://www.leibniz-fli.de Scientific Director: Prof. Dr. K. Lenhard Rudolph Head of Administration: Dr. Daniele Barthel Chairman of Board of Trustees: Burkhard Zinner VAT No: DE 153 925 464 Register of Associations: No. 230296, Amtsgericht Jena Tax Number: 162/141/08228 -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
[Jmol-users] Background Color
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 available to get this color. Otis -- Find and fix application performance issues faster with Applications Manager Applications Manager provides deep performance insights into multiple tiers of your business applications. It resolves application problems quickly and reduces your MTTR. Get your free trial! https://ad.doubleclick.net/ddm/clk/302982198;130105516;z ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
[Jmol-users] background color JS error
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 acceptable format. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
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] 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 acceptable format. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] background color JS error
ah yes, that works. still, it should avoid throwing a JS error that prevents later commands from being executed. From: Paul Pillot paul.pil...@ac-orleans-tours.fr Reply-To: jmol-users@lists.sourceforge.net Date: Thu, 14 Jan 2010 14:08:22 -0500 To: jmol-users@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] 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 acceptable format. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
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, Grossman, Robert B a écrit : ah yes, that works. still, it should avoid throwing a JS error that prevents later commands from being executed. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] background color JS error
When I had background: [white] followed by an alert, the alert failed to appear. Seems like a runtime JS error to me. 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 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, Grossman, Robert B a écrit : ah yes, that works. still, it should avoid throwing a JS error that prevents later commands from being executed. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] background color JS error
Was the alert in the same jmolscript, or in a javascript command separated from the jmolscript() call? Le 14 janv. 2010 à 20:19, Grossman, Robert B a écrit : When I had background: [white] followed by an alert, the alert failed to appear. Seems like a runtime JS error to me. 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 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, Grossman, Robert B a écrit : ah yes, that works. still, it should avoid throwing a JS error that prevents later commands from being executed. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] background color JS error
It was in a javascript command separated from the jmolscript() call. It was in a function that was supposed to be called after Jmol loaded. jmolApplet(250, 'background [white]; javascript jmolLoaded();'); function jmolLoaded() { alert(mol); } 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 in the same jmolscript, or in a javascript command separated from the jmolscript() call? Le 14 janv. 2010 à 20:19, Grossman, Robert B a écrit : When I had background: [white] followed by an alert, the alert failed to appear. Seems like a runtime JS error to me. 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 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, Grossman, Robert B a écrit : ah yes, that works. still, it should avoid throwing a JS error that prevents later commands from being executed. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
Re: [Jmol-users] background color JS error
The problem just comes from the fact that the Jmol script hanged at background [white]. The next jmol command was not executed, which means that javascript jmolLoaded had not been executed by Jmol. So there is JS runtime error due to Jmol. -Paul Le 14 janv. 2010 à 20:53, Grossman, Robert B a écrit : It was in a javascript command separated from the jmolscript() call. It was in a function that was supposed to be called after Jmol loaded. jmolApplet(250, 'background [white]; javascript jmolLoaded();'); function jmolLoaded() { alert(mol); } 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 in the same jmolscript, or in a javascript command separated from the jmolscript() call? Le 14 janv. 2010 à 20:19, Grossman, Robert B a écrit : When I had background: [white] followed by an alert, the alert failed to appear. Seems like a runtime JS error to me. 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 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, Grossman, Robert B a écrit : ah yes, that works. still, it should avoid throwing a JS error that prevents later commands from being executed. -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users -- Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users
[Jmol-users] background color and jmolGetPropertyAsString(image);
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); document.getElementById(SnpSht).innerHTML = 'img style=float:right width=300 height=300 src=data:image/jpeg;base64,' + myImage + ''; jmolScript(color background black); } All works well, except that the snapshot always appears with a black background (although I can see a white flash). It seems that jmolGetPropertyAsString(image) fires before the color change -- even if I build in a delay such as: setTimeout(myImage = jmolGetPropertyAsString(image),1); or jmolScript(color background white; delay 5); I'm using jmol-11-6-RC12. Is there a solution? Steve Dr. Steven R. Spilatro Department of Biology and Environmental Science Marietta College - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users