System.Windows.Forms.ColorPickerForm._GetColorComponent C# (CSharp) Méthode

_GetColorComponent() private static méthode

private static _GetColorComponent ( double temp1, double temp2, double temp3 ) : double
temp1 double
temp2 double
temp3 double
Résultat double
        private static double _GetColorComponent(double temp1, double temp2, double temp3)
        {
            temp3 = _MoveIntoRange(temp3);
            if (temp3 < 1.0f / 6.0f)
                return temp1 + (temp2 - temp1) * 6.0f * temp3;
            else if (temp3 < 0.5f)
                return temp2;
            else if (temp3 < 2.0f / 3.0f)
                return temp1 + ((temp2 - temp1) * ((2.0f / 3.0f) - temp3) * 6.0f);
            else
                return temp1;
        }
        private static double _GetTemp2(double h, double s, double l)