“set_color” defines a new color using the red, green, and blue (RGB) color components.
set_color name, rgb
name = string: name for the new or existing color
rgb = list of numbers: [red, green, blue] each and all in the range (0.0, 1.0) or (0, 255)
set_color red, [ 1.0, 0.0, 0.0 ] set_color yellow, [ 255, 255, 0 ]
PyMOL automatically infers the range based on the input arguments.
It may be necessary to issue “recolor” command in order to force recoloring of existing objects.