requires that gradient and color parameters exist before trying to do the gradient.