0.0.2 • Published 8 years ago

reflect-to-canvas v0.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
8 years ago

reflect-to-canvas

Reflect your image to canvas

npm.io

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