public void DarkVioletCmykToLch() { var knownColor = new Cmyk { C = .29858, M = 1, Y = 0, K = .17255, }; var expectedColor = new Lch { L = 39.579, C = 103.828, H = 317.325, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void WhiteRgbToLch() { var knownColor = new Rgb { R = 255, G = 255, B = 255, }; var expectedColor = new Lch { L = 100, C = .01166, H = 296.813, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public bool Equals(Lch other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(other.L == L && other.C == C && other.H == H); }
public void BlackRgbToLch() { var knownColor = new Rgb { R = 0, G = 0, B = 0, }; var expectedColor = new Lch { L = 0, C = 0, H = 0, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void MaroonLchToYxy() { var knownColor = new Lch { L = 24.829, C = 60.093, H = 38.180, }; var expectedColor = new Yxy { Y1 = 21.260, X = 0.64007, Y2 = .32997, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void MaroonLchToXyz() { var knownColor = new Lch { L = 24.829, C = 60.093, H = 38.180, }; var expectedColor = new Xyz { X = 8.902, Y = 4.589, Z = .417, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void MaroonLchToRgb() { var knownColor = new Lch { L = 24.829, C = 60.093, H = 38.180, }; var expectedColor = new Rgb { R = 125, G = 0.02, B = 0, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void MaroonLchToLch() { var knownColor = new Lch { L = 24.829, C = 60.093, H = 38.180, }; var expectedColor = new Lch { L = 24.829, C = 60.093, H = 38.180, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void MaroonLchToLab() { var knownColor = new Lch { L = 24.829, C = 60.093, H = 38.180, }; var expectedColor = new Lab { L = 25.531, A = 48.055, B = 38.059, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void AquamarineHsvToLch() { var knownColor = new Hsv { H = 160, S = .5, V = 1, }; var expectedColor = new Lch { L = 92.036, C = 46.545, H = 167.957, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
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); }
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); }
public void RedLabToLch() { var knownColor = new Lab { L = 53.233, A = 80.109, B = 67.220, }; var expectedColor = new Lch { L = 53.33, C = 104.575, H = 40, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
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); }
public void SilverLuvToLch() { var knownColor = new Luv { L = 77.704, U = .001, V = -.013, }; var expectedColor = new Lch { L = 77.704, C = .0074, H = 290.49463, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void MaroonLchToLab() { var knownColor = new Lch { L = 24.829, C = 60.093, H = 38.180, }; var expectedColor = new Lab { L = 24.829, A = 47.237, B = 37.146, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void GoldenrodRgbToLch() { var knownColor = new Rgb { R = 218, G = 165, B = 32, }; var expectedColor = new Lch { L = 70.816, C = 69.291, H = 82.933, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
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); }
public void MaroonLchToCmyk() { var knownColor = new Lch { L = 24.829, C = 60.093, H = 38.180, }; var expectedColor = new Cmyk { C = 0, M = .984, Y = 1, K = .49804, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void RivergumXyzToLch() { var knownColor = new Xyz { X = 13.123, Y = 15.372, Z = 13.174, }; var expectedColor = new Lch { L = 46.140, C = 12.502, H = 138.898, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }