From: John Stone (
Date: Thu Mar 24 2011 - 22:14:38 CDT

  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.

  John Stone

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 (

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:                 Phone: 217-244-3349
  WWW:      Fax: 217-244-6078