Exemplo n.º 1
0
    /// <summary>
    /// Sets the color of the UI that showed this display to the currently
    /// selected color.
    /// </summary>
    public void ConfirmColorChange()
    {
        TrialManager.JsonColor color = new TrialManager.JsonColor
        {
            R = RedSelection.GetColorValue(),
            G = GreenSelection.GetColorValue(),
            B = BlueSelection.GetColorValue()
        };

        SelectingUI.SetJSONColor(color);
    }
Exemplo n.º 2
0
    /// <summary>
    /// Called when the color values are updated. Changes the displayed
    /// color in the ColorDisplay.
    /// </summary>
    public void ColorUpdated()
    {
        TrialManager.JsonColor color = new TrialManager.JsonColor
        {
            R = RedSelection.GetColorValue(),
            G = GreenSelection.GetColorValue(),
            B = BlueSelection.GetColorValue()
        };

        ColorDisplay.color = color.GetColor();
    }