google / google/neuroglancer

Annotation coloring by random seed

Open
#524 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.5k
Forks
389
Avg merge
3d 21h
Merged PRs (30d)
3

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.