CHANGED:user defined color generation function support