Table of Contents

set_color

“set_color” defines a new color using the red, green, and blue (RGB) color components.

Usage

set_color name, rgb

Arguments

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)

Examples

set_color red, [ 1.0, 0.0, 0.0 ] 

set_color yellow, [ 255, 255, 0 ] 

Notes

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.

See Also

recolor | cmd.set_color | commands