VMD-L Mailing List
From: John Stone (johns_at_ks.uiuc.edu)
Date: Thu Mar 24 2011 - 22:14:38 CDT
- Next message: Paweł Kędzierski: "Re: measure dipole"
- Previous message: John Stone: "Re: Compiling on Windows"
- In reply to: Jonathan KHAO: "Color wheel gradient"
- Next in thread: jonathan: "Re: Color wheel gradient"
- Reply: jonathan: "Re: Color wheel gradient"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Hi,
You can write a script to generate any color scale color scheme
you like. I've attached an example script that emulates some
of the popular color gradient scales provided in Matlab and Octave.
I'm traveling until Monday, but if you have questions, I would
be happy to help you when I return.
Cheers,
John Stone
vmd_at_ks.uiuc.edu
On Tue, Mar 22, 2011 at 06:57:08PM +0100, Jonathan KHAO wrote:
> Hi,
>
> I'm trying to color atoms with an asymetric and periodic color
> gradient e.g. the color wheel. The gradients present in VMD can be
> made periodic by using user defined values as coloration criteria. But
> the problem is that they are always symetric.
> In my case, I want to color molecules with a gradient so that Z, Z+X,
> ... Z+nX coordinates have the same one. If I color Z to Z+X molecules
> with a Bwr gradient, and switch to a rwB one for Z+X to Z+2X
> molecules, I will obtain identical colors for molecules at the same
> distance to Z+X ...
>
> So is there a way to script a "colorwheel" gradient ?
> If not, how may I edit the VMD source to add/modify gradients ?
>
> Thanks a lot,
>
> Jonathan.
>
>
> ----------------------------------------------------------------------
> Message envoyé via le Webmail de l'IFR88 (http://www.ifr88.cnrs-mrs.fr).
>
-- NIH Resource for Macromolecular Modeling and Bioinformatics Beckman Institute for Advanced Science and Technology University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801 Email: johns_at_ks.uiuc.edu Phone: 217-244-3349 WWW: http://www.ks.uiuc.edu/~johns/ Fax: 217-244-6078
- application/x-tcl attachment: matlab_colorscale.tcl
- Next message: Paweł Kędzierski: "Re: measure dipole"
- Previous message: John Stone: "Re: Compiling on Windows"
- In reply to: Jonathan KHAO: "Color wheel gradient"
- Next in thread: jonathan: "Re: Color wheel gradient"
- Reply: jonathan: "Re: Color wheel gradient"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]