Difference between revisions of "Ray opaque background"

From PyMOLWiki
Jump to: navigation, search
 
(Examples: eliminated abbreviation in setting name)
 
(2 intermediate revisions by one other user not shown)
Line 3: Line 3:
  
 
== Settings ==
 
== Settings ==
 +
Note: turning this setting '''off''' creates the transparent backgrounds.
 +
 
<source lang="python">
 
<source lang="python">
set ray_opaque_background, off  # turn on transparent alpha channel
+
# turn on transparent alpha channel
 +
set ray_opaque_background, off
 
</source>
 
</source>
  
 
== Examples ==
 
== Examples ==
 
<gallery>
 
<gallery>
Image:Rob0.png|Ray Opaque BG=0; blank white background; transparent background with the checkerboard beneath it.
+
Image:Rob0.png|ray_opaque_background set to 0.  The image from PyMOL is shown over a checkerboard.
Image:Rob1.png|Ray Opaque BG=1; notice the checkerboard not visible.
+
Image:Rob1.png|ray_opaque_background set to 1.  The image from PyMOL is shown over a checkerboard, however because the background is opaque, the checkerboard underneath does not show through.
 
</gallery>
 
</gallery>
 +
 +
[[Category:Settings|Ray opaque background]]
 +
[[Category:Image_Manipulation|Ray opaque background]]
 +
[[Category:Publication_Quality|Ray opaque background]]

Latest revision as of 13:17, 5 June 2014

Overview

This setting changes how PyMol treats the background. If this option is ON then the background is whatever you specify -- like black or white; however, if the setting is OFF, then the background will be treated as a transparent alpha channel.

Settings

Note: turning this setting off creates the transparent backgrounds.

# turn on transparent alpha channel
set ray_opaque_background, off

Examples