We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00e3873 commit d68fe60Copy full SHA for d68fe60
1 file changed
css-color-hdr-1/colorHdrInterpolate.js
@@ -15,4 +15,7 @@ function hdrColor(col1, H1, col2, H2, H) {
15
cxyz[i] = Math.pow(c1xyz[i] + eps, w1) * Math.pow(c2xyz[i] + eps, w2) - eps;
16
}
17
return cxyz;
18
-}
+}
19
+
20
+const clamp = (n, min, max) =>
21
+ Math.min(Math.max(n, min), max)
0 commit comments