GradientKey.GradientKey

GradientKey(Color color, float position)

   
Color color The color for this item, can be whatever color space you want, as long as it’s consistent with the other keys.
float position Typically a value between 0-1! This is the position of the color along the ‘x-axis’ of the gradient.

A basic copy constructor for GradientKey.