From: Gil P. <pr...@uh...> - 2002-10-18 20:38:27
|
This is not directly PyMOL specific, but it addresses a problem I think=20 a lot of us have encountered in preparing hardcopy outputs. Some RGB triplets do have equivalents in CMYK space, and as a result, a=20 figure that looks great on a screen can come out with unpredictable=20 colors when printed. Most applications do a good job with RGB-to-CMYK conversions 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 and greens=20 do not translate very well. Here are some RGB values that are within the CMYK gamut (i.e. are=20 "CMYK-safe"): ## #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] set_color _green=3D [0.00 , 0.53 , 0.22] set_color _lgreen=3D[0.50 , 0.78 , 0.50] set_color _yellow=3D[0.95 , 0.78 , 0.00] set_color _orange=3D[1.00 , 0.40 , 0.0 ] # 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] ## 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. Wishlist: It would be useful to specify a "CMYK mode" in PyMOL, so that the color=20 palate uses RGB colors that have good CMYK equivalents. This would=20 simplify color selection when preparing hardcopy figures. With apologies to color-matching gurus, Gil =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 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 |