public void Multiply() { var y = RGBSpectrum.FromColor(Colors.Yellow); var r = RGBSpectrum.FromColor(Colors.Red); var m = y * r; RGBSpectrum.ToColor(m).Should().Be(Colors.Red); }
public void Subtract() { var s1 = RGBSpectrum.FromColor(Colors.Yellow); var s2 = RGBSpectrum.FromColor(Colors.Red); var s3 = s1 - s2; RGBSpectrum.ToColor(s3).Should().Be(Colors.Green); }
public void CreateFromSingleValue() { var s = new RGBSpectrum(1f); RGBSpectrum.ToColor(s).Should().Be(Colors.White); }