philtre

Image filters in javascript using <canvas>


Keywords
canvas, filter, philtre, image, convolve, convolution
License
MIT
Install
bower install philtre

Documentation

philtre

Image filters in Javascript using <canvas>. A philtre is a magic potion.

example: Philtre.threshold

install

Grab js/philtre.js. Sample use in js/app.js.

Get it with bower: bower install philtre.

thanks to

Inspired by HTML5 Rocks image filters and MDN CSS filters. Helpful color theory and code at codeproject and stack overflow. Demo images via Flickr's creative commons search:

future

  • saturate, contrast, and sepia
  • convolution-based filters