This is a read-only mirror of pymolwiki.org

Difference between revisions of "Talk:Spectrumbar"

From PyMOL Wiki
Jump to navigation Jump to search
(Created page with 'Have been planning to write this script for a while now but never got around to it. Its strength lies within its customizability. If you want a specific color to occupy a large…')
 
Line 8: Line 8:
  
 
[[User:slaw|Sean]] 01:55, 3 Sept 2009 (EST)
 
[[User:slaw|Sean]] 01:55, 3 Sept 2009 (EST)
 +
 +
Just added rounded ends for aesthetic look
 +
 +
[[User:slaw|Sean]] 08:25, 9 Sept 2009 (EST)

Revision as of 12:25, 9 September 2009

Have been planning to write this script for a while now but never got around to it. Its strength lies within its customizability. If you want a specific color to occupy a larger span of space in the spectrum then simply list that color twice (or multiple times):

spectrumbar red, green, green, blue

This will produce a bar where the green section occupies more of the bar. Further customization can be done by automatically defining a rainbow spectrum but this requires borrowing code from Robert Cambell's script(s) (namely the hsv to rgb conversion).

Also, the length, head, and tail options need to be cleaned up but, realistically, it isn't necessary to touch those options.

Sean 01:55, 3 Sept 2009 (EST)

Just added rounded ends for aesthetic look

Sean 08:25, 9 Sept 2009 (EST)