About the colormapping

Hello everyone, I was working on some PET images recently, and I found that the PET-DICOM display in the Volume module in the 3D slicer is exactly what I want. Where can I find the source code to implement this feature? Thanks for your help.