I have been trying to come up with a nice clean way to allow other mods to define custom color functions for my mods to use, but I have not had much success yet.
So, If you're interested, I could add your color script into my mods so that it essentially becomes a "hidden" feature that can be enabled by installing your mod. Let me know what you think or if you have a better idea; there are some pros and cons of that and I'm still not sure it's the best implementation.