public void DivideSaturationTest() { Core.Color baseColor = HSVColor.Create(180, 0.6, 0.6); Core.Color result = baseColor.DivideHSV(saturation: 2); Assert.AreEqual(HSVColor.Create(180, 0.3, 0.6), result); }
public void DivideValueTest() { Core.Color baseColor = HSVColor.Create(180, 0.6, 0.6); Core.Color result = baseColor.DivideHSV(value: 2); Assert.AreEqual(HSVColor.Create(180, 0.6, 0.3), result); }
public void DivideHueTest() { Core.Color baseColor = HSVColor.Create(180, 0.5, 0.5); Core.Color result = baseColor.DivideHSV(hue: 30); Assert.AreEqual(HSVColor.Create(6, 0.5, 0.5), result); }