Skip to content

impronunciable/zelig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zelig

Classic convolution filters on top of component/convolve

Available filters

Zelig#blur()

Zelig#edgeDetect()

Zelig#emboss()

Zelig#laplace()

Zelig#gaussianBlur()

Zelig#motionBlur()

Zelig#sharpen()

Example

var zelig = require('zelig');
var canvas = document.querySelector('canvas');
var ctx = canvas.getContext('2d');

var img = new Image;
img.onload = draw;
img.src = 'maru.jpg';

function draw() {
  canvas.width = img.width;
  canvas.height = img.height;
  ctx.drawImage(img, 0, 0);
  zelig
    .emboss()
    .canvas(canvas);
}

About

Classic convolution filters on top of component/convolve

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published