public static Func <Color, Color> TransformHue(int strenght) { return((Color rgbColor) => { HsvColor hsvColor = HsvRgbColorConverter.ConvertRgbToHsv(rgbColor); hsvColor.H += strenght; return HsvRgbColorConverter.ConvertHsvToRgb(hsvColor); }); }
public static Func <Color, Color> TransformSaturation(int strenght) { return((Color rgbColor) => { HsvColor hsvColor = HsvRgbColorConverter.ConvertRgbToHsv(rgbColor); double floatingPointStrenght = (double)strenght / 100; hsvColor.S += floatingPointStrenght; return HsvRgbColorConverter.ConvertHsvToRgb(hsvColor); }); }