Skip to content

Commit bef6fb6

Browse files
committed
Update srgb transfer function as per w3c/csswg-drafts#9467
1 parent 8430160 commit bef6fb6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lrgb/convertRgbToLrgb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const fn = c => {
22
const abs = Math.abs(c);
3-
if (abs < 0.04045) {
3+
if (abs <= 0.04045) {
44
return c / 12.92;
55
}
66
return (Math.sign(c) || 1) * Math.pow((abs + 0.055) / 1.055, 2.4);

test/lerp.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import tape from 'tape';
2-
import { lerp, unlerp, blerp, trilerp } from '../src/index.js';
2+
import { lerp, unlerp, trilerp } from '../src/index.js';
33

44
tape('lerp()', t => {
55
t.equal(lerp(10, 2, 0.5), 6);

0 commit comments

Comments
 (0)