Takashi Tamura 7acb112ca9 Optimization:
Avoid calling Math.pow if possible when calculating the transfer
function of the CalRGB color space since calling Math.pow is expensive.

If the value of color is larger than the threshold, 0.99554525,
the final result of the transform is larger that 254.5
since ((1 + 0.055) * 0.99554525 ** (1 / 2.4) - 0.055) * 255 === 254.50000003134699
2020-06-07 13:17:18 +09:00
..
2020-04-14 12:28:14 +02:00
2020-04-14 12:28:14 +02:00
2020-04-17 12:24:46 +02:00
2020-06-07 13:17:18 +09:00
2020-04-14 12:28:14 +02:00
2020-04-14 12:28:14 +02:00
2020-04-14 12:28:14 +02:00
2020-04-14 12:28:14 +02:00
2020-04-14 12:28:14 +02:00
2020-04-17 12:24:46 +02:00
2020-04-17 12:24:46 +02:00
2020-04-14 12:28:14 +02:00
2020-04-14 12:28:14 +02:00