Plugin for handling common tasks with the HTML5 canvas element. Provides methods for adding simple shapes and animation.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
dist
docs
libs
src
test
LICENSE-GPL
LICENSE-MIT
README.md
fixed-anim.html
grunt.js
index.html
package.json

README.md

Overview

Plugin for handling common tasks with the HTML5 canvas element.

Getting Started

Download the production version or the development version.

In your web page:

<script src="jquery.js"></script>
<script src="dist/jquery.canvas.min.js"></script>
<script>
  var canvas = $('#my-canvas').canvas().data('canvas');
  canvas.addSquare({ x: 5, y: 5 }, 10, 'red', 1, 'black');
</script>

Documentation

Class documentation is available here.

Generated using docco-husky because it's super awesome

Examples

Working examples are here and here.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Also, please don't edit files in the "dist" subdirectory as they are generated via grunt. You'll find source code in the "src" subdirectory!

Release History

(Nothing yet)

License

Copyright (c) 2012 Matt Hernandez
Licensed under the MIT, GPL licenses.