Example #1
0
        private void UpdateSelectedColor(byte a)
        {
            var currentColor = ColorUtil.ColorFromAhsb(a / 255d, H, S, B);

            if (SelectedColor != currentColor)
            {
                _isInnerUpdateSelectedColor = true;
                SelectedColor = currentColor;
            }
        }
Example #2
0
 private void UpdateSelectedColor()
 {
     _isInnerUpdateSelectedColor = true;
     SelectedColor = ColorUtil.ColorFromAhsb(SelectedColor.A / 255d, H, S, B);
 }