You are on page 1of 1

Caman.Filter.

register("see-through", function () {
var col = this.getPixel(0, 0);
this.process("see-through", function (rgba) {
if (rgba == col) {
rgba.r = 255;
rgba.g = 0;
rgba.b = 0;
}
// Return the modified RGB values
return rgba;
});
});

You might also like