mrt:vintage

v0.0.1Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

vintageJS

Add a retro/vintage effect to images using the HTML5 canvas element. Demo site

How to use

mrt add vintage

vanilla

1        var img = document.getElementById('yourImage');
2        var options = {
3            onError: function() {
4                alert('ERROR');
5            }
6        };
7        var effect = {
8            vignette: 0.6,
9            sepia: true
10        };
11        new VintageJS(img, options, effect);