mode:select based on which property: luminance, hue, or saturation
vmin:the floor level of the mask
vmax:the maximum value of the mask
envelope:four values to define the begin and end of ease-in and ease-out of an envelope function
