Exemple #1
0
        internal static Color LchToRgb(LchColor lch)
        {
            var lab = LchToLab(lch);
            var rgb = LabToRgb(lab);

            return(rgb);
        }
Exemple #2
0
        ///
        internal static LabColor LchToLab(LchColor lch)
        {
            var h = lch.H * (Math.PI / 180);

            return(new LabColor(lch.L, Math.Cos(h) * lch.C, Math.Sin(lch.H * lch.C)));
        }