void SetColor(Color color, bool setColorPicker) { if (setColorPicker) { sequenceColorWheel.PickedColor = color; } sequenceRgb.Text = color.R + "," + color.G + "," + color.B; HSVcolor hsvColor = CConverter.ColorToHSV(color); sequenceHsv.Text = Math.Round(hsvColor.Hue, 0) + "," + Math.Round(hsvColor.Saturation, 2) + "," + Math.Round(hsvColor.Value, 2); sequenceHex.Text = CConverter.HexFromColor(color); sequencePanel.BackColor = color; sequenceMaker1.SetSelectedPointColor(color); }
void SetColor(Color color, bool setColorPicker) { if (setColorPicker) { staticColorWheel.PickedColor = color; } staticRgb.Text = color.R + "," + color.G + "," + color.B; HSVcolor hsvColor = CConverter.ColorToHSV(color); staticHsv.Text = Math.Round(hsvColor.Hue, 0) + "," + Math.Round(hsvColor.Saturation, 2) + "," + Math.Round(hsvColor.Value, 2); staticHex.Text = CConverter.HexFromColor(color); staticPanel.BackColor = color; this.color = color; rgb = staticRgb.Text; }
void SetColor(Color color, bool setColorPicker) { if (setColorPicker) { audioColorWheel.PickedColor = color; } audioRgb.Text = color.R + "," + color.G + "," + color.B; HSVcolor hsvColor = CConverter.ColorToHSV(color); audioHsv.Text = Math.Round(hsvColor.Hue, 0) + "," + Math.Round(hsvColor.Saturation, 2) + "," + Math.Round(hsvColor.Value, 2); audioHex.Text = CConverter.HexFromColor(color); targetPanel.BackColor = color; if (targetPanel == panelFrom) { colorFrom = color; } if (targetPanel == panelTo) { colorTo = color; } }