Talk:Spectrumbar

From PyMOLWiki
Revision as of 13:55, 3 September 2009 by Slaw (talk | contribs) (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…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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)