├── .gitignore ├── LICENSE ├── README.md ├── bower.json ├── docs ├── demos.md ├── download │ ├── martin.js │ ├── martin.min.js │ └── martin.min.js.map ├── effects.md ├── elements.md ├── events.md ├── images │ ├── bunny-old.jpg │ ├── bunny.jpg │ ├── martin.jpg │ ├── marty-banner.png │ └── marty-full.jpg ├── index.md ├── js │ ├── demos.js │ └── index.js ├── layers.md ├── overview.md ├── plugins.md └── utilities.md ├── gulpfile.js ├── images └── humphrey.jpg ├── index.html ├── js ├── dist │ ├── martin.gradientmap.js │ ├── martin.gradientmap.min.js │ ├── martin.js │ ├── martin.min.js │ ├── martin.min.js.map │ ├── martin.tile.js │ ├── martin.tile.min.js │ ├── martin.watermark.js │ ├── martin.watermark.min.js │ └── watermark.js └── src │ ├── core │ ├── dimensions.js │ ├── helpers.js │ ├── init.js │ ├── utils.js │ └── version.js │ ├── effect │ ├── blur.js │ ├── desaturate.js │ ├── init.js │ ├── invert.js │ ├── lighten.js │ ├── opacity.js │ └── sharpen.js │ ├── element │ ├── circle.js │ ├── ellipse.js │ ├── image.js │ ├── init.js │ ├── line.js │ ├── polygon.js │ ├── rect.js │ └── text.js │ ├── end.js │ ├── event │ └── events.js │ ├── layer │ └── layers.js │ ├── object │ └── object.js │ ├── plugins │ ├── gradientmap.js │ ├── tile.js │ └── watermark.js │ └── start.js ├── mkdocs.yml ├── package.json ├── server.js └── test ├── index.html └── test.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | site 3 | aws.json 4 | test/jasmine 5 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Scott Parker Donaldson 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Martin.js 2 | 3 | Martin.js is a JavaScript library for working with HTML5 canvas, to make photo manipulation and drawing in browser easy for developers and users. 4 | 5 | ## Installation and Initializing 6 | 7 | `bower install martinjs` 8 | 9 | Bower will download and install minified and un-minified versions in the `js/dist` folder (`martin.min.js` and `martin.js`, respectively), as well as source files in the `js/src` folder. 10 | 11 | In the `
` of your document, include Martin.js: 12 | 13 | ```html 14 | 15 | ``` 16 | 17 | Then, after including Martin.js, you can initialize it from a `