This is a read-only mirror of pymolwiki.org
Difference between revisions of "Set Color"
Jump to navigation
Jump to search
m |
|||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
===DESCRIPTION=== | ===DESCRIPTION=== | ||
| − | + | [[Set_Color]] defines a new color with color indices (0.0-1.0) | |
===USAGE=== | ===USAGE=== | ||
<source lang="python"> | <source lang="python"> | ||
| − | + | set_color name, [ red-float, green-float, blue-float ] | |
| − | + | set_color name = [ red-float, green-float, blue-float ] #(DEPRECATED) | |
</source> | </source> | ||
| + | |||
===PYMOL API=== | ===PYMOL API=== | ||
<source lang="python"> | <source lang="python"> | ||
| Line 13: | Line 14: | ||
===EXAMPLES=== | ===EXAMPLES=== | ||
| − | + | <source lang="python"> | |
| + | set_color red, [ 1.0, 0.0, 0.0 ] | ||
| + | </source> | ||
| − | [[Category:Commands| | + | [[Category:Commands|Set Color]] |
| + | [[Category:Coloring|Set Color]] | ||
Revision as of 14:25, 20 June 2009
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 ]