A dynamic color palette generator based on an array of values