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

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

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

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