brainglobe / brainrender-napari

A napari plugin to render BrainGlobe atlases and associated data as layers.
BSD 3-Clause "New" or "Revised" License
18 stars 1 forks source link

[BUG] mesh default colouring mostly shows as white #50

Closed alessandrofelder closed 11 months ago

alessandrofelder commented 11 months ago

Describe the bug Almost all mesh-adding to napari results in a white-coloured mesh.

To Reproduce Add meshes to napari via the atlas viewer widget.

Expected behaviour Default colour specified in structures.json should propagate to napari mesh vertex colouring when a mesh is added.

Additional context This happens because we are missing a conversion from RGB (in structures.json) to rgb (what napari expects).