(img)
| 3141 | } |
| 3142 | |
| 3143 | function desaturate(img) { |
| 3144 | /* Returns a grayscale version of the image. |
| 3145 | */ |
| 3146 | return adjust(img, {saturation: 0}); |
| 3147 | } |
| 3148 | |
| 3149 | function brightpass(img, threshold) { |
| 3150 | /* Returns a new image where pixels whose luminance fall below the threshold are black. |
nothing calls this directly
no test coverage detected
searching dependent graphs…