vmd-python
3.0.1
Animate
Atomsel
Axes
Color
Basic colors
vmd.color.get_colors
vmd.color.get_colorlist
vmd.color.set_colors
vmd.color.set_colorid
vmd.color.categories
Color mappings
Color scale
Display
Evaltcl
Graphics
IMD
Label
Material
Measure
Molecule
Molrep
Mouse
Render
Selection
Topology
Trans
VMD Callbacks
VMD Menu
VMD Numpy
vmd-python
Docs
»
Color
»
vmd.color.set_colorid
View page source
vmd.color.set_colorid
¶
vmd.color.
set_colorid
(
)
¶
Set RGB value of a color at a given index
Parameters:
id
(
int
) – Color ID to change
rgb
(
3-tuple of floats
) – New RGB value for color. Values should be in the range 0 to 1.