MCPcopy Index your code
hub / github.com/clips/pattern / desaturate

Function desaturate

pattern/canvas.js:3143–3147  ·  view source on GitHub ↗
(img)

Source from the content-addressed store, hash-verified

3141}
3142
3143function desaturate(img) {
3144 /* Returns a grayscale version of the image.
3145 */
3146 return adjust(img, {saturation: 0});
3147}
3148
3149function brightpass(img, threshold) {
3150 /* Returns a new image where pixels whose luminance fall below the threshold are black.

Callers

nothing calls this directly

Calls 1

adjustFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…