Next: display
Up: Controlling VMD from Python
Previous: axes
  Contents
  Index
Python operations available from the color module, used to
change the color definitions, color maps, or edit the color scale.
All rgb and color scale values should be in the range 0 to 1.
- categories():
Returns a list of available color categories.
- get_colormap(name):
Returns a dictionary of name/color pairs for the given color category.
- set_colormap(name, dict):
Change the color definitions for the colors in the given color
category. The keys in dict must come from the keys listed by
get_colormap for that color category, though not all keys need be
listed. The values must be legal color names.
- get_colors():
Returns a dictionary whose keys are all the legal color names and
whose corresponding values are the RGB values of the color, represented as
a 3-tuple.
- set_colors(dict):
Changes RGB values for colors in VMD. Keys must be chosen from the
keys returned by get_colors(). Values must be 3-tuples of floats.
- scale_method():
Returns the current color scale method.
- scale_methods():
Returns a list of all available color scale methods.
- scale_midpoint():
Returns the current color scale midpoint.
- scale_min():
Returns the current color scale minimum.
- scale_max():
Returns the current color scale maximum.
- set_scale(method, midpoint, min, max):
Change the color scale method, midpoint, minimum, or maximum. All
properties may be set using keyword arguments.
Next: display
Up: Controlling VMD from Python
Previous: axes
  Contents
  Index
vmd@ks.uiuc.edu