Thanks a lot, that did the trick.

Carles


On Fri, Jan 17, 2014 at 5:14 PM, Robert Hanson <[email protected]> wrote:

> Close but not quite!
>
> {*}.property_whatever = someArray
> color {*} property_whatever
> color {*} property_whatever "rwb"
> color {*} property_whatever "rgb"
> color {*} property_whatever "user=red orange yellow yellow yellow green
> green blue"
> color {*} property_whatever "rgb" range 5 10
> select property_whatever < 5
> display property_whatever > 10
> ....
>
>
>
>
>
>
> On Fri, Jan 17, 2014 at 9:00 AM, Carles Fenollosa <[email protected]
> > wrote:
>
>> Hi all,
>>
>> I've been trying to find an easy way to do this one task and after some
>> hours of googling can't seem to get it right.
>>
>> I have a molecule with N atoms and a javascript array with N doubles
>> [-1..1]. I'd like to paint every atom with the color gradient indicated in
>> the array. If possible, I'd like it to use the "rwb" rainbow.
>>
>> From what I read in the documentation, I've been messing with commands
>> like
>>
>> color atoms @myarray
>> color atoms "myarray" rwb
>>
>> et cetera.
>>
>> I can feel I'm close to the solution, but I've been unable to make it
>> work. Can somebody give me a hand? Does anybody know how can I implement
>> this without doing N times <select atom, color ...> which is quite slow?
>>
>> Thanks a lot,
>> Carles
>>
>>
>> ------------------------------------------------------------------------------
>> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
>> Learn Why More Businesses Are Choosing CenturyLink Cloud For
>> Critical Workloads, Development Environments & Everything In Between.
>> Get a Quote or Start a Free Trial Today.
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor 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
>
>
>
> ------------------------------------------------------------------------------
> CenturyLink Cloud: The Leader in Enterprise Cloud Services.
> Learn Why More Businesses Are Choosing CenturyLink Cloud For
> Critical Workloads, Development Environments & Everything In Between.
> Get a Quote or Start a Free Trial Today.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>


WARNING / LEGAL TEXT: This message is intended only for the use of the
individual or entity to which it is addressed and may contain
information which is privileged, confidential, proprietary, or exempt
from disclosure under applicable law. If you are not the intended
recipient or the person responsible for delivering the message to the
intended recipient, you are strictly prohibited from disclosing,
distributing, copying, or in any way using this message. If you have
received this communication in error, please notify the sender and
destroy and delete any copies you may have received.

http://www.bsc.es/disclaimer
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to