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); }
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); }
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); }
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 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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }