Example #1
0
        /// <summary>Set the hue and saturation based on point X,Y relative to the wheel centre</summary>
        private void SelectHueAndSaturation(int x, int y)
        {
            var dim = LayoutDimensions;

            if (dim.Empty)
            {
                return;
            }
            HSVColour = HSV.FromRadial((x - dim.Centre.X) / dim.Radius, (y - dim.Centre.Y) / dim.Radius, HSVColour.V, HSVColour.A);
        }