Esempio n. 1
0
        public static Color ModifyBrightness(Color c, double brightness)
        {
            HSB hsb = RGB.ToHSB(c);

            hsb.Brightness *= brightness;
            return(hsb.ToColor());
        }
Esempio n. 2
0
        public static Color ModifyHue(Color c, double Hue)
        {
            HSB hsb = RGB.ToHSB(c);

            hsb.Hue *= Hue;
            return(hsb.ToColor());
        }
Esempio n. 3
0
        public static Color ModifySaturation(Color c, double Saturation)
        {
            HSB hsb = RGB.ToHSB(c);

            hsb.Saturation *= Saturation;
            return(hsb.ToColor());
        }
Esempio n. 4
0
 public HSB(Color color)
 {
     this = RGB.ToHSB(color);
 }