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

Function filter

pattern/canvas.js:3047–3055  ·  view source on GitHub ↗
(img, callback)

Source from the content-addressed store, hash-verified

3045}
3046
3047function filter(img, callback) {
3048 /* Returns a new Image object with the given pixel function applied to it.
3049 * The function takes an array of RGBA-values (base 255) and returns a new array.
3050 */
3051 var pixels = new Pixels(img);
3052 pixels.map(callback);
3053 pixels.update();
3054 return pixels.image();
3055}
3056
3057/*##################################################################################################*/
3058

Callers 4

invertFunction · 0.70
colorizeFunction · 0.70
brightpassFunction · 0.70
cooccurrenceFunction · 0.70

Calls 2

mapMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…