예제 #1
0
        public Color GetColorIncreased(Color color, int h, int s, int b)
        {
            RibbonColor ribbonColor = new RibbonColor(color);
            int         saturation  = ribbonColor.GetSaturation();
            float       vC          = (float)(b + ribbonColor.GetBrightness());
            float       hC          = (float)(h + ribbonColor.GetHue());
            float       sC          = (float)(s + saturation);

            ribbonColor.VC = vC;
            ribbonColor.HC = hC;
            ribbonColor.SC = sC;
            return(ribbonColor.GetColor());
        }
예제 #2
0
        public Color GetColorIncreased(Color color, int h, int s, int b)
        {
            RibbonColor _color = new RibbonColor(color);
            int         ss     = _color.GetSaturation();
            float       vc     = b + _color.GetBrightness();
            float       hc     = h + _color.GetHue();
            float       sc     = s + ss;


            _color.VC = vc;
            _color.HC = hc;
            _color.SC = sc;

            return(_color.GetColor());
        }