Difference between revisions of "Set Color"

From PyMOLWiki
Jump to navigation Jump to search
 
m
Line 1: Line 1:
 
===DESCRIPTION===
 
===DESCRIPTION===
+
'''set_color''' defines a new color with color indices (0.0-1.0)
  "set_color" defines a new color with color indices (0.0-1.0)
+
 
 
 
===USAGE===
 
===USAGE===
   
+
<source lang="python">
  set_color name, [ red-float, green-float, blue-float ]
+
  set_color name, [ red-float, green-float, blue-float ]
   
+
  set_color name = [ red-float, green-float, blue-float ] #(DEPRECATED)
  set_color name = [ red-float, green-float, blue-float ]
+
</source>
    # (DEPRECATED)
 
 
 
===PYMOL API===
 
===PYMOL API===
<source lang="python">
+
<source lang="python">
  cmd.set_color( string name, float-list rgb )
+
cmd.set_color( string name, float-list rgb )
</source>
+
</source>
+
 
 
===EXAMPLES===
 
===EXAMPLES===
   
+
  set_color red = [ 1.0, 0.0, 0.0 ]  
  set_color red = [ 1.0, 0.0, 0.0 ]  
 
  
 
[[Category:Commands|set_color]]
 
[[Category:Commands|set_color]]

Revision as of 13:07, 29 June 2005

DESCRIPTION

set_color defines a new color with color indices (0.0-1.0)

USAGE

 set_color name, [ red-float, green-float, blue-float ]
 set_color name = [ red-float, green-float, blue-float ]  #(DEPRECATED)

PYMOL API

cmd.set_color( string name, float-list rgb )

EXAMPLES

set_color red = [ 1.0, 0.0, 0.0 ]