next up previous contents index
Next: 7 VMD Atom Selection Up: 6.4 VMD Script Commands Previous: 6.4.6 Making the molecule

6.4.7 Querying VMD for Color Information

  To obtain a list of the available color names:
colorinfo colors
To obtain a listing of the attributes of the color red:

foreach attrib {rgb alpha shininess ambient specular} {
   puts "$attrib [colorinfo $attrib red]"
}
To change the ambient value of the color red to (1.0 .5 .33):
color change ambient red 1.0 .5 .33



Sergei Izrailev
Fri Jul 25 17:07:27 CDT 1997