We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 133d1df commit dbe9a56Copy full SHA for dbe9a56
coloraide/spaces/ycbcr709.py
@@ -76,7 +76,7 @@ def digital_round(self, x: float) -> int:
76
Clamping is then applied to keep the value within the target integer type.
77
"""
78
79
- return alg.clamp(int(alg.sign(x) * math.floor(abs(x) + 5)), 0, self.max_integer_size)
+ return alg.clamp(int(alg.sign(x) * math.floor(abs(x) + 0.5)), 0, self.max_integer_size)
80
81
82
class YPbPr(Labish, Space):
0 commit comments