Beispiel #1
0
    def test_linear_to_s_log3(self):
        """
        Tests :func:`colour.models.log.linear_to_s_log3` definition.
        """

        self.assertAlmostEqual(
            linear_to_s_log3(0),
            0.09286412512218964,
            places=7)

        self.assertAlmostEqual(
            linear_to_s_log3(0.18),
            0.41055718475073316,
            places=7)

        self.assertAlmostEqual(
            linear_to_s_log3(1),
            0.59602734369012345,
            places=7)