Improvements to script recolor

New better helper functions for creating repeating values.
Reduce number of same const values used by script.