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

Annotation coloring by random seed #524

Open
fcollman opened this issue Feb 1, 2024 · 0 comments
Open

Annotation coloring by random seed #524

fcollman opened this issue Feb 1, 2024 · 0 comments

Comments

@fcollman
Copy link
Contributor

fcollman commented Feb 1, 2024

If i have an annotation layer which has some kind of integer property/class, is there a way I can leverage the existing neuroglancer random coloring infrastructure to render those annotations with respect to a random seed hash?

As an example.. say i have a bunch of synapses where I believe I have given them different class labels and attached those as annotation properties and I want to color the synapses of the same type the same color, without having to explicitly provide a map from integers to colors, or also define an RGB color property on each class?

particularly when classes become larger and more abstact, for example cell type clusters, this would be handy to know how to do.

I'm imaging it is possible with the right level of shader logic, but i don't know where to lookup what shader functions might already be available to help with setting up the state like this.

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

1 participant