leonardo
A minimalist image filter library for javascript
Available filters
The following filters have been implemented:
- greyscale (using luminance)
- sepia (using w3c filters sepia definition)
- popart (still in development)
- vivid (makes the colors more vivid)
- polaroid (makes the photo a bit overexposed like if it had been taken with a polaroid)
Usage
In the browser
Replace an image by a filtered version:
var image = document;var filteredCanvas = leonardo;imagesrc = filteredCanvas;
In node
var Canvas = Image = CanvasImage leonardo = fs = ; fs;
Dependencies
In the browser
None