Greg,

To directly specify RGB colors, you can encode them as a hexidecimal string
(0xRRGGBB):

color 0xffcc11, chain A

However, the advantage of using set_color is that you can change your mind
later without having to edit every line in your script where you use the
color -- just the one line where it is defined.

Cheers,
Warren


> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Greg 
> Williams
> Sent: Sunday, October 07, 2007 9:38 PM
> To: [email protected]
> Subject: [PyMOL] Coloring subunits
> 
> 
> 
> Hi,
> 
> New PyMol user here, clubbing my way up the learning curve. 
> Say I'm modeling a protein with 8 subunits. I want to show them as 
> spheres and give each of them a slightly different shade of blue. Do I

> have to define by name each of my 8 colors with the set_color command 
> and then apply my set individually with, for example: color blue1, 
> chain A. That seems a bit clunky.
> 
> I see that the argument for color is a "string: color name or number" 
> What is meant by number in this context?
> 
> I've tried color (x, y, z), chain A
> 
> Where x, y and z are 0-255 RGB coordinates, 0-1 PyMol coordinates, 
> with several syntax variations. I keep getting error messages.
> 
> I must be missing something simple.
> 
> Greg Williams
> Department of Chemistry
> University of Oregon
> 
> 
> --------------------------------------------------------------
> -----------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a 
> browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/ 
> _______________________________________________
> PyMOL-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pymol-users
> 
> 
> 
> 


Reply via email to