Colorama: Difference between revisions
No edit summary |
|||
Line 43: | Line 43: | ||
==Contact== | ==Contact== | ||
Gregor Hagelueken, | Gregor Hagelueken, | ||
hagelueken'at'pc.uni-bonn.de | |||
[[Category:Plugins]] | [[Category:Plugins]] |
Latest revision as of 04:29, 10 January 2013
Type | PyMOL Plugin |
---|---|
Download | plugins/colorama.py |
Author(s) | Gregor Hagelueken |
License | - |
This code has been put under version control in the project Pymol-script-repo |
COLORAMA
COLORAMA is a PyMOL plugin which allows to color objects using adjustable scale bars.
Program features
In RGB mode, each color R, G, B is represented by one scale bar which can be manually adjusted while the selected object is colored in real time. For convenience, it is as well possible to switch to the HSV color system.
Additionally, a color gradient with user-defined start- and end-colors can be created for the selected molecule.
Screenshot
Usage
This plugin is included in the project Pymol-script-repo.
Manual install the plugin by copying the code below into an empty text file (e.g. "colorama.py") located in the \Pymol\modules\pmg_tk\startup directory. After PyMOL has been started, the program can be launched from the PLUGINS menu. COLORAMA has not been tested with PyMOL versions older than 1.0.
Single color
- Type the name of a PyMOL object to be colored into the COLORAMA entry field.
- Push the "Set" button.
- The scales are adjusted to the current color which is additionally visualized in a field left to the scales.
- If one of the scales is moved, the color of the selected object will change in real-time.
- Pushing the RGB or HSV buttons on the left allows to switch between both color systems.
Color gradients
- After an object has been selected, push the "G" button (gradient).
- Select the start color by pushing "C1" and adjusting it using the scales.
- Select the end color "C2" in the same way.
- To create the gradient, push "Set gradient".
A new object will be created which is called "dummy-OLD_OBJECT". The B-factor column of this object is overwritten and now contains the number of each residue. The original object is left unchanged. The gradient mode can be left by pushing "M" (monochrome). This part of the program uses a modified version of the color_b script by Robert L. Campbell & James Stroud.
Contact
Gregor Hagelueken, hagelueken'at'pc.uni-bonn.de