Exemplo n.º 1
0
        private void CalculateColor(Point p)
        {
            HsvColor hsv = new HsvColor(360 - _spectrumSlider.Value, 1, 1)
            {
                S = p.X,
                V = 1 - p.Y
            };
            var currentColor = ColorUtilities.ConvertHsvToRgb(hsv.H, hsv.S, hsv.V);
            currentColor.A = A;
            SelectedColor = currentColor;
            string newColor = ColorUtilities.GetFormatedColorString(SelectedColor, UsingAlphaChannel);

            SetHexadecimalStringProperty(newColor, false);
        }