Gradient.Set

void Set(int index, Color color, float position)

   
int index Index of the color key to change.
Color color Any color you like!
float position Typically a value between 0-1! This is the position of the color along the ‘x-axis’ of the gradient.

Updates the color key at the given index! This will NOT re-order color keys if they are moved past another key’s position, which could lead to strange behavior.