Beispiel #1
0
    public void SetColor(Color color)
    {
        Color.RGBToHSV(color, out currentHue, out currentSaturation, out currentBrightness);

        hueSlider.SetHue(currentHue);
        saturationBrightnessPicker.SetSaturation(currentSaturation);
        saturationBrightnessPicker.SetBrightness(currentBrightness);

        EmitEvents();
    }