예제 #1
0
파일: SetHue.cs 프로젝트: MRGS/ArcadeRoyale
 public override Color Transform(Color input, float randomValue)
 {
     return input
         .ToHSL()
         .WithHue(GLRandom.RandomOffset(hue, range))
         .Color;
 }
예제 #2
0
 public override Color Transform(Color input, float randomValue)
 {
     return input
         .ToHSL()
         .WithSaturation(GLRandom.RandomOffset(saturation, range))
         .Color;
 }
예제 #3
0
 public override Color Transform(Color input, float randomValue)
 {
     return input
         .ToHSL()
         .WithLuminanceOffset(GLRandom.RandomOffset(luminanceOffset, range))
         .Color;
 }
예제 #4
0
 public override Color Transform(Color input)
 {
     return input
         .ToHSL()
         .InvertSaturation()
         .Color;
 }
예제 #5
0
 public override Color Transform(Color input)
 {
     return input
         .ToHSL()
         .InvertLuminosity()
         .Color;
 }
예제 #6
0
        public override Color Transform(Color input, float randomValue)
        {
            var hsl = input.ToHSL();

            return hsl.WithLuminance(GLRandom.RandomOffset(luminance, range)).Color;
        }