public override Color Transform(Color input, float randomValue) { return input .ToHSL() .WithHue(GLRandom.RandomOffset(hue, range)) .Color; }
public override Color Transform(Color input, float randomValue) { return input .ToHSL() .WithSaturation(GLRandom.RandomOffset(saturation, range)) .Color; }
public override Color Transform(Color input, float randomValue) { return input .ToHSL() .WithLuminanceOffset(GLRandom.RandomOffset(luminanceOffset, range)) .Color; }
public override Color Transform(Color input) { return input .ToHSL() .InvertSaturation() .Color; }
public override Color Transform(Color input) { return input .ToHSL() .InvertLuminosity() .Color; }
public override Color Transform(Color input, float randomValue) { var hsl = input.ToHSL(); return hsl.WithLuminance(GLRandom.RandomOffset(luminance, range)).Color; }