livingston/Squares

View on GitHub
README.md

Summary

Maintainability
Test Coverage
##Squares [![Code Climate](https://codeclimate.com/github/livingston/Squares/badges/gpa.svg)](https://codeclimate.com/github/livingston/Squares)

*Animated background squares implemented with canvas*

####Features
- [x] Simple random squares
- [ ] Interactive squares – Mouse & Touch (WIP)
- [ ] Patterns

<!--####Options
* Background size
* Block size
* Color function
* Grid customizations

-->

####Usage
Add the canvas element to your html page

    <canvas id='grid'></canvas>

Include `lodash.js` and `Squares.js` before the `</body>` tag.

Add the following snippet to you javascript code,

    var sqrs = new Squares(document.getElementById('grid'));
    sqrs.tick();