예제 #1
0
            public void ShiftLightnessCeiling()
            {
                var hsl = new Color.HSL(90, 0.5, 0.5);

                Assert.AreEqual(new Color.HSL(90, 0.5, 1.0), hsl.ShiftLightness(0.8));
            }
예제 #2
0
            public void ShiftLightnessFloor()
            {
                var hsl = new Color.HSL(90, 0.5, 0.5);

                Assert.AreEqual(new Color.HSL(90, 0.5, 0.0), hsl.ShiftLightness(-0.8));
            }
예제 #3
0
            public void ShiftLightnessAddsToLightness()
            {
                var hsl = new Color.HSL(90, 0.5, 0.5);

                Assert.AreEqual(new Color.HSL(90, 0.5, 0.7), hsl.ShiftLightness(0.2));
            }