Frieda,
I added that in 11.1.16 or 11.1.17. Anyway, that does/will work.
redness=0
message = _here1
color [EMAIL PROTECTED], 0, 0]
redness= redness+5
if (redness < 255);goto _here1;endif
r = 255
g = 0
b = 0
background [EMAIL PROTECTED],@g,@b]
Hmm, so you want x.color. that's a fine idea... OK, that's in for 11.1.18:
x = backgroundColor.color
x = {nitrogen}.color - {50 0 0}
select {nitrogen}; color [EMAIL PROTECTED]
The colors are just saved as standard coordinates. So anything that is a
coordinate
can become a color by surrounding it with [].
This may not work in all situations. We will have to experiment.
Bob
Frieda Reichsman wrote:
> Hi Bob, Maybe this is a feature request? Not sure...
> Frieda
>
> Begin forwarded message:
>
>> *From: *Frieda Reichsman <[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>>
>> *Date: *March 2, 2007 2:35:58 PM EST
>> *To: [EMAIL PROTECTED]
>> <mailto:[email protected]>
>> *Subject: **variables in color codes?*
>>
>> Some cool color effects could be obtained more easily if we could use
>> variable names in RGB or hex colors in Jmol.
>>
>> For example, I tried using something like:
>>
>> redness=0
>> message = _here1
>> color [EMAIL PROTECTED], 0, 0]
>> @redness= redness+5
>> refresh
>> if ... etc.
>>
>> but Jmol did not like the redness variable inside the color code
>> command.
>>
>> Lots of fade effects become feasible, especially if one can find out
>> the current color of an object, i.e., get the color info on an object
>> from Jmol. (Can that be done in Jmol at present?)
>>
>> Frieda
>>
>> ///////////////////////////////////////////
>>
>> Frieda Reichsman, PhD
>> Molecules in Motion
>> Interactive Molecular Structures
>> http://www.moleculesinmotion.com
>>
>> ///////////////////////////////////////////
>>
>>
>
> ///////////////////////////////////////////
>
>
> Frieda Reichsman, PhD
>
> Molecules in Motion
>
> Interactive Molecular Structures
>
> http://www.moleculesinmotion.com
>
>
> ///////////////////////////////////////////
>
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users