Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        public void CreateFromSingleValue()
        {
            var s = new RGBSpectrum(1f);

            RGBSpectrum.ToColor(s).Should().Be(Colors.White);
        }