reflect-to-canvas

0.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i reflect-to-canvas

Weekly Downloads

6

Version

0.0.2

License

MIT

Last publish

Collaborators

  • ragingwind