public bool Equals(HunterLab other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(other.L == L && other.A == A && other.B == B); }
public void GoldenrodRgbToHunterLab() { var knownColor = new Rgb { R = 218, G = 165, B = 32, }; var expectedColor = new HunterLab { L = 64.746, A = 4.222, B = 38.719, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void BlackRgbToHunterLab() { var knownColor = new Rgb { R = 0, G = 0, B = 0, }; var expectedColor = new HunterLab { L = 0, A = 0, B = 0, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void BabyBlueHunterLabToXyz() { var knownColor = new HunterLab { L = 85.308, A = -27.915, B = -13.675, }; var expectedColor = new Xyz { X = 58.007, Y = 72.775, Z = 105.596, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void BabyBlueHunterLabToRgb() { var knownColor = new HunterLab { L = 85.308, A = -27.915, B = -13.675, }; var expectedColor = new Rgb { R = 133, G = 237, B = 255, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }
public void WhiteRgbToHunterLab() { var knownColor = new Rgb { R = 255, G = 255, B = 255, }; var expectedColor = new HunterLab { L = 100, A = -5.336, B = 5.433, }; ExpectedValuesForKnownColor(knownColor,expectedColor); }