From: DeLano, W. <wa...@su...> - 2002-10-22 23:06:32
|
Thanks for the suggestion? For now, why not just redefine the existing colors?=20 No need for a leading underscore... set_color green=3D [0.00 , 0.53 , 0.22] etc. Note that there are default atom colors such as "carbon", "nitrogen", = "oxygen", "hydrogen", "sulfur", etc. which should also be redefined. set_color carbon=3D [0.00 , 0.53 , 0.22] etc,=20 Warren > -----Original Message----- > From: Gil Prive [mailto:pr...@uh...] > Sent: Friday, October 18, 2002 1:38 PM > To: pym...@li... > Subject: [PyMOL] CMYK colors >=20 >=20 >=20 > This is not directly PyMOL specific, but it addresses a=20 > problem I think=20 > a lot of us have encountered in preparing hardcopy outputs. >=20 > Some RGB triplets do have equivalents in CMYK space, and as a=20 > result, a=20 > figure that looks great on a screen can come out with unpredictable=20 > colors when printed. >=20 > Most applications do a good job with RGB-to-CMYK conversions=20 > for photos,=20 > but do not do such a good job with graphics that use pure primary=20 > colors. For example, reds are generally OK, but pure blues=20 > and greens=20 > do not translate very well. >=20 > Here are some RGB values that are within the CMYK gamut (i.e. are=20 > "CMYK-safe"): >=20 >=20 > ## > #optimized rgb values for cmyk output: > set_color _dblue=3D [0.05 , 0.19 , 0.57] > set_color _blue=3D [0.02 , 0.50 , 0.72] > set_color _mblue=3D [0.5 , 0.7 , 0.9 ] > set_color _lblue=3D [0.86 , 1.00 , 1.00] >=20 > set_color _green=3D [0.00 , 0.53 , 0.22] > set_color _lgreen=3D[0.50 , 0.78 , 0.50] >=20 > set_color _yellow=3D[0.95 , 0.78 , 0.00] >=20 > set_color _orange=3D[1.00 , 0.40 , 0.0 ] >=20 > # these are trivial > set_color _red=3D [1.00 , 0.00 , 0.00] > set_color _mred=3D [1.00 , 0.40 , 0.40] > set_color _lred=3D [1.00 , 0.80 , 0.80] > set_color _vlred=3D [1.00 , 0.90 , 0.90] > set_color _white=3D [1.00 , 1.00 , 1.00] > set_color _vlgray=3D[0.95 , 0.95 , 0.95] > set_color _lgray=3D [0.90 , 0.90 , 0.90] > set_color _gray=3D [0.70 , 0.70 , 0.70] > set_color _dgray=3D [0.50 , 0.50 , 0.50] > set_color _vdgray=3D[0.30 , 0.30 , 0.30] > set_color _black=3D [0.00 , 0.00 , 0.00] > ## >=20 >=20 > There may be a more elegant way to do this (specific to the OS and=20 > post-PyMOL application), but this is a simple solution. >=20 >=20 > Wishlist: > It would be useful to specify a "CMYK mode" in PyMOL, so that=20 > the color=20 > palate uses RGB colors that have good CMYK equivalents. This would=20 > simplify color selection when preparing hardcopy figures. >=20 >=20 > With apologies to color-matching gurus, > Gil >=20 >=20 > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > Gil Priv=E9 > Ontario Cancer Institute > University of Toronto >=20 > pr...@uh... > http://xtal.uhnres.utoronto.ca/prive > = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by: > Access Your PC Securely with GoToMyPC. Try Free Now > https://www.gotomypc.com/s/OSND/DD > _______________________________________________ > PyMOL-users mailing list > PyM...@li... > https://lists.sourceforge.net/lists/listinfo/pymol-users >=20 |