Exemplo n.º 1
0
        public void LightenFunction <TPixel>(TestPixel <TPixel> back, TestPixel <TPixel> source, float amount, TestPixel <TPixel> expected)
            where TPixel : struct, IPixel <TPixel>
        {
            TPixel actual = PorterDuffFunctions.Lighten((TPixel)back, source, amount);

            VectorAssert.Equal(expected, actual, 2);
        }
Exemplo n.º 2
0
        public void LightenFunction(TestVector4 back, TestVector4 source, float amount, TestVector4 expected)
        {
            Vector4 actual = PorterDuffFunctions.Lighten((Vector4)back, source, amount);

            VectorAssert.Equal(expected, actual, 5);
        }