FZJ-INM1-BDA / siibra-explorer

Apache License 2.0
22 stars 4 forks source link

Improve random color generation for parcellations without explicit color assignment #750

Closed ch-schiffer closed 3 years ago

ch-schiffer commented 3 years ago

A random color is generated for brain areas if they have no explicit color assignment using the "rgb" attribute. Currently, this color generation is based only on labelIndex, which is very often identical, resulting in the same color. It would be better to include other attributes in the random color generation (for example ngId) to make sure a wider range of colors gets generated.

xgui3783 commented 3 years ago

fixed by #856