public static void RGB2HSLuv(float inR, float inG, float inB, out float outH, out float outS, out float outL) { IList <double> hsluv = HSLuv.RgbToHsluv(new List <double> { (double)inR, (double)inG, (double)inB }); outH = (float)hsluv[0]; outS = (float)hsluv[1]; outL = (float)hsluv[2]; }
public static void HSLuv2RGB(float inH, float inS, float inL, out float outR, out float outG, out float outB) { IList <double> rgb = HSLuv.HsluvToRgb(new List <double> { (double)inH, (double)inS, (double)inL }); outR = (float)rgb[0]; outG = (float)rgb[1]; outB = (float)rgb[2]; }