Closed jaredsampson closed 6 years ago
great work by the way! Sorry for being so pedantic :-)
Thanks :)
Not completely related, but to make using this easier, I'm thinking about adding a cb_colors.py file to import this module and add the menu in one step. I wanted to make the functions available here, so they could be used in scripts, but it's a lot to ask users to type and remember to import colorblindfriendly; colorblindfriendly.add_menu()
and would much rather import cb_colors
. @speleo3 would you have a preference on this?
No preference. Sounds like a simple but effective addition. Also note that PyMOL users like to "run" scripts instead of importing them, but I think you've already covered that by checking __name__ == 'pymol'
.
Complete overhaul for PyMOL 2.0 with conversion to module format. Now, setting the new
cb_*
color values requires a call to theset_colors()
function after import. You can also now add acb_colors
menu to the OpenGL GUI via theadd_menu()
function. See updated wiki page for example. https://pymolwiki.org/index.php/Colorblindfriendly