Colouring slices in 3D volume slicer

I am learning from in dash-slicer/examples at main · plotly/dash-slicer · GitHub to create a mask which colored with a list of colors. Is this the proper/standard way to color every single slice? Or is there a way to directly match my 3D intensity value(float) to a colormap so that I can avoid converting to a unit8 mask? And how to show the original intensity value on the mask while hovering over the mouse? Appreciate any comments.

Hi AlanW,

have you figured out how to color each slice in the volume ?
I am trying to color the volume, but I dont need to create the mask (as in
since I already have the mask. My volume consists of 8 segmented classes and I want to color them.
Do we have to use contrast limit ?