We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc3af3a commit b5b6e9dCopy full SHA for b5b6e9d
1 file changed
css-color-hdr-1/rec2100-hlg.js
@@ -51,4 +51,9 @@ function hlg_decode(RGB) {
51
}
52
return ((Math.exp((val - c) / a) + b) / 12) * scale;
53
});
54
+}
55
+
56
+function spow (base, exp) {
57
+ let sign = base < 0? -1 : 1;
58
+ return sign * (Math.abs(base) ** exp);
59
0 commit comments