Esempio n. 1
0
        public ColorPanel()
        {
            InitializeComponent();

            redColorSlider.Renderer   = _redRenderer = new ColorSliderRenderer(redColorSlider);
            greenColorSlider.Renderer = _greenRenderer = new ColorSliderRenderer(greenColorSlider);
            blueColorSlider.Renderer  = _blueRenderer = new ColorSliderRenderer(blueColorSlider);
            alphaColorSlider.Renderer = _alphaRenderer = new AlphaSliderRenderer(alphaColorSlider);

            hueColorSlider.Renderer        = _hueRenderer = new HueSliderRenderer(hueColorSlider);
            saturationColorSlider.Renderer = _saturationRenderer = new SaturationSliderRenderer(saturationColorSlider);
            valueColorSlider.Renderer      = _valueRenderer = new ValueSliderRenderer(valueColorSlider);

            SetColor(ColorManager.FromRGBA(255, 255, 255, 255));
        }
Esempio n. 2
0
		public ColorPanel()
		{
			InitializeComponent();

			redColorSlider.Renderer = _redRenderer = new ColorSliderRenderer(redColorSlider);
			greenColorSlider.Renderer = _greenRenderer = new ColorSliderRenderer(greenColorSlider);
			blueColorSlider.Renderer = _blueRenderer = new ColorSliderRenderer(blueColorSlider);
			alphaColorSlider.Renderer = _alphaRenderer = new AlphaSliderRenderer(alphaColorSlider);

			hueColorSlider.Renderer = _hueRenderer = new HueSliderRenderer(hueColorSlider);
			saturationColorSlider.Renderer = _saturationRenderer = new SaturationSliderRenderer(saturationColorSlider);
			valueColorSlider.Renderer = _valueRenderer = new ValueSliderRenderer(valueColorSlider);

			SetColor(ColorManager.FromRGBA(255, 255, 255, 255));
		}