예제 #1
0
            public void DarkVioletCmykToHsl()
            {
                var knownColor = new Cmyk { C = .29858, M = 1, Y = 0, K = .17255, };
                var expectedColor = new Hsl { H = 282, S = 100, L = 41, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #2
0
            public void WhiteRgbToHsl()
            {
				var knownColor = new Rgb { R = 255, G = 255, B = 255, };
				var expectedColor = new Hsl { H = 0, S = 0, L = 100, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #3
0
 public bool Equals(Hsl other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(other.H == H && other.S == S && other.L == L);
 }
예제 #4
0
            public void MaroonLchToHsl()
            {
                var knownColor = new Lch { L = 24.829, C = 60.093, H = 38.180, };
                var expectedColor = new Hsl { H = 0, S = 100, L = 50, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #5
0
            public void RedLabToHsl()
            {
                var knownColor = new Lab { L = 53.233, A = 80.109, B = 67.220, };
                var expectedColor = new Hsl { H = 0, S = 100, L = 50, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #6
0
            public void AliceBlueHslToYxy()
            {
                var knownColor = new Hsl { H = 208, S = 100, L = 97, };
                var expectedColor = new Yxy { Y1 = 92.880, X = .30363, Y2 = .32210, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #7
0
            public void AliceBlueHslToXyz()
            {
                var knownColor = new Hsl { H = 208, S = 100, L = 97, };
                var expectedColor = new Xyz { X = 87.553, Y = 92.880, Z = 107.921, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #8
0
            public void AliceBlueHslToRgb()
            {
                var knownColor = new Hsl { H = 208, S = 100, L = 97, };
                var expectedColor = new Rgb { R = 240, G = 248, B = 255, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #9
0
            public void AliceBlueHslToLab()
            {
                var knownColor = new Hsl { H = 208, S = 100, L = 97, };
                var expectedColor = new Lab { L = 97.179, A = -1.3688, B = -4.358, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #10
0
            public void AliceBlueHslToHsl()
            {
                var knownColor = new Hsl { H = 208, S = 100, L = 97, };
                var expectedColor = new Hsl { H = 208, S = 100, L = 97, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #11
0
            public void AliceBlueHslToCmyk()
            {
                var knownColor = new Hsl { H = 208, S = 100, L = 97, };
                var expectedColor = new Cmyk { C = .06, M = .028, Y = 0, K = 0, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #12
0
            public void SteelBlueCmyToHsl()
            {
                var knownColor = new Cmy { C = .72549, M = .49020, Y = .29412, };
                var expectedColor = new Hsl { H = 207, S = 44, L = 49, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #13
0
            public void SilverLuvToHsl()
            {
                var knownColor = new Luv { L = 77.704, U = .001, V = -.013, };
                var expectedColor = new Hsl { H = 60, S = 0.7874, L = 75.098, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #14
0
            public void AquamarineHsvToHsl()
            {
                var knownColor = new Hsv { H = 160, S = .5, V = 1, };
                var expectedColor = new Hsl { H = 160, S = 100, L = 74.9019, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #15
0
            public void RivergumXyzToHsl()
            {
                var knownColor = new Xyz { X = 13.123, Y = 15.372, Z = 13.174, };
                var expectedColor = new Hsl { H = 109.999, S = 8.654, L = 40.7843, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #16
0
            public void BlackRgbToHsl()
            {
                var knownColor = new Rgb { R = 0, G = 0, B = 0, };
                var expectedColor = new Hsl { H = 0, S = 0, L = 0, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #17
0
            public void GoldenrodRgbToHsl()
            {
                var knownColor = new Rgb { R = 218, G = 165, B = 32, };
                var expectedColor = new Hsl { H = 43, S = 74, L = 49, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
예제 #18
0
            public void AliceBlueHslToLch()
            {
                var knownColor = new Hsl { H = 208, S = 100, L = 97, };
                var expectedColor = new Lch { L = 97.179, C = 4.5683, H = 252.551, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }