-
Notifications
You must be signed in to change notification settings - Fork 136
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add ColormakerRegistry? #670
Comments
https://github.com/arose/ngl/blob/master/doc/usage/coloring.md#selection-based-coloring var schemeId = NGL.ColormakerRegistry.addSelectionScheme([
["red", "64-74 or 134-154 or 222-254 or 310-310 or 322-326"],
["green", "311-322"],
["yellow", "40-63 or 75-95 or 112-133 or 155-173 or 202-221 or 255-277 or 289-309"],
["blue", "1-39 or 96-112 or 174-201 or 278-288"],
["white", "*"]
], "Transmembrane 3dqb");
stage.loadFile("rcsb://3dqb.pdb").then(function (o) {
o.addRepresentation("cartoon", {color: schemeId }); // pass schemeId here
o.autoView();
}); |
hainm
added a commit
to hainm/nglview
that referenced
this issue
Oct 27, 2018
done in master. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure it it's useful in nglview. Or may be just let people do that in
ngl
?The text was updated successfully, but these errors were encountered: