Пример #1
0
            public void WhiteRgbToCmy()
            {
				var knownColor = new Rgb { R = 255, G = 255, B = 255, };
				var expectedColor = new Cmy { C = 0, M = 0, Y = 0, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #2
0
            public void DarkVioletCmykToCmy()
            {
                var knownColor = new Cmyk { C = .29858, M = 1, Y = 0, K = .17255, };
                var expectedColor = new Cmy { C = .41961, M = 1, Y = .17255, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #3
0
 public bool Equals(Cmy other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(other.C == C && other.M == M && other.Y == Y);
 }
Пример #4
0
            public void AliceBlueHslToCmy()
            {
                var knownColor = new Hsl { H = 208, S = 100, L = 97, };
                var expectedColor = new Cmy { C = .06, M = .028, Y = 0, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #5
0
            public void SteelBlueCmyToYxy()
            {
                var knownColor = new Cmy { C = .72549, M = .49020, Y = .29412, };
                var expectedColor = new Yxy { Y1 = 20.562, X = .21934, Y2 = .24058, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #6
0
            public void SteelBlueCmyToXyz()
            {
                var knownColor = new Cmy { C = .72549, M = .49020, Y = .29412, };
                var expectedColor = new Xyz { X = 18.746, Y = 20.562, Z = 46.161, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #7
0
            public void SteelBlueCmyToRgb()
            {
                var knownColor = new Cmy { C = .72549, M = .49020, Y = .29412, };
                var expectedColor = new Rgb { R = 70, G = 130, B = 180, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #8
0
            public void BlackRgbToCmy()
            {
                var knownColor = new Rgb { R = 0, G = 0, B = 0, };
                var expectedColor = new Cmy { C = 1, M = 1, Y = 1, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #9
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);
            }
Пример #10
0
            public void SteelBlueCmyToCmyk()
            {
                var knownColor = new Cmy { C = .72549, M = .49020, Y = .29412, };
                var expectedColor = new Cmyk { C = .61111, M = .27778, Y = 0, K = .29412, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #11
0
            public void SilverLuvToCmy()
            {
                var knownColor = new Luv { L = 77.704, U = .001, V = -.013, };
                var expectedColor = new Cmy { C = .24706, M = .24704, Y = .24706, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #12
0
            public void AquamarineHsvToCmy()
            {
                var knownColor = new Hsv { H = 160, S = .5, V = 1, };
                var expectedColor = new Cmy { C = .50196, M = 0, Y = .16666, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #13
0
            public void SteelBlueCmyToLuv()
            {
                var knownColor = new Cmy { C = .72549, M = .49020, Y = .29412, };
                var expectedColor = new Luv { L = 52.467, U = -25.107, V = -48.374, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #14
0
            public void RivergumXyzToCmy()
            {
                var knownColor = new Xyz { X = 13.123, Y = 15.372, Z = 13.174, };
                var expectedColor = new Cmy { C = .614, M = .55494, Y = .62627, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #15
0
            public void RedLabToCmy()
            {
                var knownColor = new Lab { L = 53.233, A = 80.109, B = 67.220, };
                var expectedColor = new Cmy { C = 0.0039, M = .99970, Y = 1, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #16
0
            public void MaroonLchToCmy()
            {
                var knownColor = new Lch { L = 24.829, C = 60.093, H = 38.180, };
                var expectedColor = new Cmy { C = .5215, M = .99993, Y = 1, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #17
0
            public void SteelBlueCmyToLab()
            {
                var knownColor = new Cmy { C = .72549, M = .49020, Y = .29412, };
                var expectedColor = new Lab { L = 52.467, A = -4.070, B = -32.198, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #18
0
            public void GoldenrodRgbToCmy()
            {
                var knownColor = new Rgb { R = 218, G = 165, B = 32, };
                var expectedColor = new Cmy { C = .14510, M = .35294, Y = .87451, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }
Пример #19
0
            public void SteelBlueCmyToLch()
            {
                var knownColor = new Cmy { C = .72549, M = .49020, Y = .29412, };
                var expectedColor = new Lch { L = 52.467, C = 32.454, H = 262.796, };

                ExpectedValuesForKnownColor(knownColor,expectedColor);
            }