Documentation: Edge Detection

Description

An edge detection filter. This action performs a simple edge detection on the image. You can also choose to have the image converted to greyscale and/or inverted.

Demo

Mono:
Invert:

Example usage

var img = new Image();
img.onload = function() {
	Pixastic.process(img, "edges", {mono:true,invert:false});
}
document.body.appendChild(img);
img.src = "myimage.jpg";

Parameters

  • mono (bool)
    Set to true to convert image to greyscale.
  • invert (bool)
    Set to true to invert image.

View source: edges.js

Browser support