/// <summary> /// Copy constructor /// </summary> /// <param name="color">The color to copy</param> public LUVColor(LUVColor color) { L = color.L; U = color.U; V = color.V; A = color.A; }
/// <summary> /// Make a linear interpolation between two LAB Color /// </summary> /// <param name="c1">the first color (t=0)</param> /// <param name="c2">the second color (t=1)</param> /// <param name="t">the progression factor (between 0 and 1)</param> /// <returns>The interpolated color</returns> public static LUVColor Lerp(LUVColor c1, LUVColor c2, float t) { return(new LUVColor(c1 * (1.0f - t) + c2 * t)); }