.d88888b. 8888888b. d8b
d88P" "Y88b 888 Y88b Y8P
888 888 888 888
888 888 888 d88P 888 .d88b. 888 888 .d8888b
888 888 8888888P" 888 d88""88b 888 888 88K
888 Y8b 888 888 T88b 888 888 888 888 888 "Y8888b.
Y88b.Y8b88P 888 T88b 888 Y88..88P Y88b 888 X88
"Y888888" 888 T88b 888 "Y88P" "Y88888 88888P'
Y8b
[QRious](https://github.com/neocotic/qrious) is a pure JavaScript library for generating QR codes using HTML5 canvas.
[](https://gitter.im/neocotic/qrious)
[](https://codepen.io/neocotic/pen/YQzmBm)
[](https://david-dm.org/neocotic/qrious?type=dev)
[](https://github.com/neocotic/qrious/blob/master/LICENSE.md)
[](https://www.npmjs.com/package/qrious)
* [Install](#install)
* [Examples](#examples)
* [API](#api)
* [Migrating from older versions](#migrating-from-older-versions)
* [Bugs](#bugs)
* [Contributors](#contributors)
* [License](#license)
## Install
Install using the package manager for your desired environment(s):
``` bash
$ npm install --save qrious
# OR:
$ bower install --save qrious
```
If you want to simply download the file to be used in the browser you can find them below:
* [Development Version](https://cdnjs.cloudflare.com/ajax/libs/qrious/4.0.2/qrious.js) (71kb - [Source Map](https://cdnjs.cloudflare.com/ajax/libs/qrious/4.0.2/qrious.js.map))
* [Production Version](https://cdnjs.cloudflare.com/ajax/libs/qrious/4.0.2/qrious.min.js) (18kb - [Source Map](https://cdnjs.cloudflare.com/ajax/libs/qrious/4.0.2/qrious.min.js.map))
Check out [node-qrious](https://github.com/neocotic/node-qrious) if you want to install it for use within
[Node.js](https://nodejs.org).
## Examples
``` html
```
Open up `demo.html` in your browser to play around a bit.
## API
Simply create an instance of `QRious` and you've done most of the work. You can control many aspects of the QR code
using the following fields on your instance:
| Field | Type | Description | Default | Read Only |
| --------------- | ------- | -------------------------------------------------- | ------------- | --------- |
| background | String | Background color of the QR code | `"white"` | No |
| backgroundAlpha | Number | Background alpha of the QR code | `1.0` | No |
| element | Element | Element to render the QR code | `