insert
void insert(int rgb,
double position,
double transparency,
int index,
double brightness)
Adds a stop to a gradient and specifies the brightness, as well as the transparency of the color.
- Parameters:
rgb - Specifies the color at the gradient stop.
position - Specifies the position of the stop within the gradient expressedas a percent.
transparency - Specifies the opacity of color at the gradient stop.
index - The index number of the stop.
brightness - Specifies the brightness of the color at the gradient stop.