/// <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); }
/// <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(); }