{"name":"drawille-canvas","version":"1.1.1","description":"HTML5 Canvas API for drawille","main":"index.js","scripts":{"test":"node example.js","build":"browserify ./example.js -d -o ./bundle.js","watch":"watchify ./example.js -d -o ./bundle.js"},"browser":"./browser.js","repository":{"type":"git","url":"git://github.com/madbence/node-drawille-canvas"},"keywords":["drawille","canvas"],"author":{"name":"Bence Dányi","email":"madbence@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/madbence/node-drawille-canvas/issues"},"homepage":"https://github.com/madbence/node-drawille-canvas","dependencies":{"bresenham":"0.0.3","drawille":"^1.1.0","gl-matrix":"^2.1.0"},"devDependencies":{"browserify":"^12.0.1","performance-now":"^0.2.0","watchify":"^3.6.0"},"gitHead":"d1002f1dd7f96dd5399b1d789c48da23ddd620e0","_id":"drawille-canvas@1.1.1","_shasum":"453dcb4e67ea54bef143288eb86482190ab2c818","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"dfcreative","email":"df.creative@gmail.com"},"maintainers":[{"name":"dfcreative","email":"df.creative@gmail.com"},{"name":"lennon","email":"madbence@gmail.com"}],"dist":{"shasum":"453dcb4e67ea54bef143288eb86482190ab2c818","tarball":"http://registry-npm.ywwl.com/drawille-canvas/download/drawille-canvas-1.1.1.tgz","integrity":"sha512-U4gPR3tcLMsyN1b7BMaphZ4uskhTdv6MRozKBQ7P/DKLZ0YEirRnWRTWHTdSenDFJ+EZG8HDnrIPbEld7TX1Lg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHe7AHhIZqg+4fOJ3NdiwdAEDkU9uO03xFGhYYm33gH6AiAjcgq13yOJX6q0K/oErLV3wiLgmV2UPJUusiGjp2dOtA=="}],"size":8198,"noattachment":false,"key":"/drawille-canvas/-/drawille-canvas-1.1.1.tgz"},"directories":{},"readme":"# drawille-canvas\r\n\r\n![anim](anim.gif)\r\n\r\nHTML5 Canvas API for [`drawille`](https://github.com/madbence/node-drawille).\r\n\r\n## Install\r\n\r\n```\r\n$ npm install drawille-canvas\r\n```\r\n\r\nIn node `v0.10` it's a bit slow, with node `v0.11` it runs very smoothly.\r\n\r\n## Usage\r\n\r\nSee [example](example.js), check out in the console (`node example`) or in the [browser](http://madbence.github.io/node-drawille-canvas/) (`example.html`).\r\n\r\n## API\r\n\r\n### new Canvas(width, height)\r\n\r\nCreate a new `Canvas` with the given dimensions.\r\nFor method details, see [`CanvasRenderingContext2D` on MDN](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D)\r\n\r\n### c.fillRect(x, y, w, h)\r\n\r\nFill the given area of the canvas.\r\n\r\n### c.clearRect(x, y, w, h)\r\n\r\nClear the given area of the canvas.\r\n\r\n### c.save()\r\n\r\nSave the current transformation matrix on the stack.\r\n\r\n### c.restore()\r\n\r\nRestore the last transformation matrix.\r\n\r\n### c.translate(x, y)\r\n\r\nTranslate the current transformation matrix.\r\n\r\n### c.rotate(a)\r\n\r\nRotate the current transformation matrix with the given angles.\r\n\r\n### c.scale(x, y)\r\n\r\nScale the current transformation matrix.\r\n\r\n### c.beginPath()\r\n\r\nStart a new path.\r\n\r\n### c.closePath()\r\n\r\nClose the current path.\r\n\r\n### c.moveTo(x, y)\r\n\r\nMove the starting point of the next segment to the given coordinates.\r\n\r\n### c.lineTo(x, y)\r\n\r\nConnect the starting point with the given point with a straight line.\r\n\r\n### c.arc(x, y, radius, start_angle, end_angle, anticlockwise)\r\n\r\nDraw an arc between two angles at centre x, y.\r\n\r\n### c.stroke()\r\n\r\nStroke the current path.\r\n\r\n### c.fill()\r\n\r\nFill the current path.\r\n\r\n### c.getContext('2d')\r\n\r\nReturn canvas itself, for compliance with browser.\r\n\r\n### c.width, c.height\r\n\r\nCanvas dimensions.\r\n\r\n### c.toString()\r\n\r\nReturn the current content of canvas as a string with braille characters.\r\n\r\n### c.getImageData(sx, sy, sw, sh)\r\n\r\nReturn an ImageData object `{ width, height, data }`, representing the underlying canvas data for the area of the canvas denoted by the rectangle which starts at `sx`, `sy` and has an `sw` width and `sh` height. `data` property is a string with braille characters.\r\n\r\n### c.putImageData(imagedata, dx, dy [, dirtyX, dirtyY, dirtyWidth, dirtyHeight])\r\n\r\nPaint data from the given _imagedata_ object `{ width, height, data }` onto the canvas. If a dirty rectangle is provided, only the area from that rectangle is painted.\r\n\r\n## License\r\n\r\nMIT\r\n","publish_time":1447181312605,"_cnpm_publish_time":1447181312605,"dist-tags":{"latest":"1.2.1"}}