Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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