private async void MeshCanvas_Loaded(object sender, RoutedEventArgs e)
        {
            bmp3 = new WriteableBitmap(50, 50);
            await HueWheel.CreateBitmap(bmp3, 1f, ColorSpace);

            this.image3.ImageSource = bmp3;
            this.isloaded           = true;
        }
        private bool UpdateColor()
        {
            if (!this.isloaded)
            {
                return(false);
            }
            var x             = this.colorX / ellipse.ActualWidth;
            var y             = 1 - this.colorY / ellipse.ActualHeight;
            var selectedColor = HueWheel.GetWheelColor((float)x, 1 - (float)y,
                                                       (float)this.LightnessSlider.Value, ColorSpace);

            if (selectedColor.A > 0)
            {
                this.SetColor(selectedColor);
                this.LightnessStart.Color = Colors.White;
                this.LightnessMid.Color   = HueWheel.GetWheelColor((float)x, 1 - (float)y, 0.5f, ColorSpace);
                this.LightnessEnd.Color   = Colors.Black;
                return(true);
            }

            return(false);
        }