MCPcopy Create free account
hub / github.com/32comic/image2pixel-web / cube

Function cube

web/js/algorithms.js:107–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 const fx = a / 500 + fy;
106 const fz = fy - b / 200;
107 const cube = v => v ** 3 > 0.008856 ? v ** 3 : (v - 16 / 116) / 7.787037;
108 const x = cube(fx) * 0.95047;
109 const y = cube(fy) * 1.00000;
110 const z = cube(fz) * 1.08883;

Callers 1

labToRgbFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected