0.0.2 • Published 8 years ago
reflect-to-canvas v0.0.2
reflect-to-canvas
Reflect your image to canvas
Install
$ npm install --save reflect-to-canvas
Usage
document.querySelector('#srcImg').reflectToCanvas(document.querySelector('#reflect'), {
reflection: 0.5
});
Options
- reflection: 0 ~ 1, value of reflection of target image reflected
- width optional: width of target image reflected. default is width of src
- height optional: height of target image reflected. default is height of src
License
MIT © ragingwind