rotate-component

Canvas rotation with origin support

npm install rotate-component
1 downloads in the last day
3 downloads in the last week
20 downloads in the last month

rotate

Canvas rotation with origin support, expressed in radians or degrees.

Installation

$ component install component/rotate

API

rotate(ctx, options)

rotate(ctx, { x: 50, y: 50, degrees: 180 });

License

MIT

npm loves you