replaced custom colour function with tint and shade functions. Allowed simple configuration of percentages used in tint and shade functions.