How to through the script call "Colors" plug-in modules and the API?

Operating system:
Slicer version:
Expected behavior:
Actual behavior:

How to through the script call “Colors” plug-in modules and the API ?

Anyone can give me some advice?
thank you!

Who can give me some advice

Can you describe what you would like to achieve?

ok,i want to implement the following view effect, but do it by scripting and setting its properties.
so please give me some advice
企业微信截图_1617956454701

@lassoan could give me some adice?

See these examples in the script repository:

OK, thank you very much!