Skip to content
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

Help: Colouring #937

Closed
DustBytes opened this issue Dec 15, 2020 · 5 comments
Closed

Help: Colouring #937

DustBytes opened this issue Dec 15, 2020 · 5 comments

Comments

@DustBytes
Copy link

Hi,

I need to put colors on each chain, which can be done with colorScheme: "chainid" but I also need to put custom colors on certain residues, which is possible via color: My_schemeId.
Imagine it like 4 chains colored via colorScheme and 10 residues from each chain are in let's say orange color.
If I put both, only "color" is active and colorScheme is ignored. In My_schemeId, the " * " coloring is not added but still no effect. I tried changing order but still color is active.

Writing custom colors for each chain is not a practical solution as chain number varies.
How can we do both?

Thank You

@hainm
Copy link
Collaborator

hainm commented Dec 15, 2020

I tried changing order but still color is active.

Can you make a code example that can be reproduced?

@DustBytes
Copy link
Author

I made this small example:

https://jsfiddle.net/ku1fhgrn/1/

Thank You

@hainm
Copy link
Collaborator

hainm commented Dec 16, 2020

Thanks @DustBytes. I see the issue now. Let me think about it.
Mean while, you can ask NGL developers directly since they know best about it: https://github.com/nglviewer/ngl/issues

@DustBytes
Copy link
Author

Any ideas please?

@hainm
Copy link
Collaborator

hainm commented Dec 22, 2020

hi @DustBytes I don't have any clue yet. For NGL questions, it would be better to ask NGL's developers. https://github.com/nglviewer/ngl/issues

@hainm hainm closed this as completed Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants