public void HardLightFunction <TPixel>(TestPixel <TPixel> back, TestPixel <TPixel> source, float amount, TestPixel <TPixel> expected)
            where TPixel : struct, IPixel <TPixel>
        {
            TPixel actual = PorterDuffFunctions <TPixel> .HardLightFunction(back, source, amount);

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

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