add Gamma function, refactor color mods