Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/component/rotate
canvas rotation with origin support, expressed in radians or degrees
https://github.com/component/rotate
Last synced: 13 days ago
JSON representation
canvas rotation with origin support, expressed in radians or degrees
- Host: GitHub
- URL: https://github.com/component/rotate
- Owner: component
- Created: 2013-06-07T18:39:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-21T17:31:41.000Z (over 11 years ago)
- Last Synced: 2024-05-08T17:07:04.830Z (8 months ago)
- Language: JavaScript
- Size: 53.7 KB
- Stars: 5
- Watchers: 7
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# rotate
Canvas rotation with origin support, expressed in radians or degrees.
## Installation
$ component install component/rotate
## API
### rotate(ctx, options)
```js
rotate(ctx, { x: 50, y: 50, degrees: 180 });
```## License
MIT