https://github.com/ragingwind/reflect-to-canvas
Reflect your image to canvas
https://github.com/ragingwind/reflect-to-canvas
Last synced: about 1 year ago
JSON representation
Reflect your image to canvas
- Host: GitHub
- URL: https://github.com/ragingwind/reflect-to-canvas
- Owner: ragingwind
- License: mit
- Created: 2015-11-09T22:32:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-11-14T11:27:39.000Z (over 10 years ago)
- Last Synced: 2025-04-01T17:13:09.898Z (over 1 year ago)
- Language: JavaScript
- Size: 0 Bytes
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# reflect-to-canvas
> Reflect your image to canvas

## Install
```
$ npm install --save reflect-to-canvas
```
## Usage
```js
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](http://ragingwind.me)